repository migration
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||
using WhiteLagoon.Domain.Entities;
|
||||
|
||||
namespace WhiteLagoon.Web.ViewModels
|
||||
{
|
||||
public class AmenityVM
|
||||
{
|
||||
public Amenity? Amenity { get; set; }
|
||||
[ValidateNever]
|
||||
public IEnumerable<SelectListItem>? VillaList { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using WhiteLagoon.Domain.Entities;
|
||||
|
||||
namespace WhiteLagoon.Web.ViewModels
|
||||
{
|
||||
public class HomeVM
|
||||
{
|
||||
public IEnumerable<Villa>? VillaList { get; set; }
|
||||
public DateOnly CheckInDate { get; set; }
|
||||
public DateOnly? CheckOutDate { get; set; }
|
||||
public int Nights { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WhiteLagoon.Web.ViewModels
|
||||
{
|
||||
public class LoginVM
|
||||
{
|
||||
[Required]
|
||||
public string Email { get; set; }
|
||||
|
||||
[Required]
|
||||
[DataType(DataType.Password)]
|
||||
public string Password { get; set; }
|
||||
|
||||
public bool RememberMe { get; set; }
|
||||
|
||||
public string? RedirectUrl { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WhiteLagoon.Web.ViewModels
|
||||
{
|
||||
public class RegisterVM
|
||||
{
|
||||
[Required]
|
||||
public string Email { get; set; }
|
||||
|
||||
[Required]
|
||||
[DataType(DataType.Password)]
|
||||
public string Password { get; set; }
|
||||
|
||||
[Required]
|
||||
[DataType(DataType.Password)]
|
||||
[Compare(nameof(Password))]
|
||||
[Display(Name = "Confirm password")]
|
||||
public string ConfirmPassword { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Display(Name="Phone Number")]
|
||||
public string? PhoneNumber { get; set; }
|
||||
|
||||
public string? RedirectUrl { get; set; }
|
||||
public string? Role { get; set; }
|
||||
[ValidateNever]
|
||||
public IEnumerable<SelectListItem>? RoleList { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||
using WhiteLagoon.Domain.Entities;
|
||||
|
||||
namespace WhiteLagoon.Web.ViewModels
|
||||
{
|
||||
public class VillaNumberVM
|
||||
{
|
||||
public VillaNumber? VillaNumber { get; set; }
|
||||
[ValidateNever]
|
||||
public IEnumerable<SelectListItem>? VillaList { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user