repository migration

This commit is contained in:
2025-05-20 11:46:50 -04:00
commit bf536b8774
213 changed files with 117679 additions and 0 deletions
+13
View File
@@ -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; }
}
}
+12
View File
@@ -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; }
}
}
+18
View File
@@ -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; }
}
}
+33
View File
@@ -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; }
}
}