-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed edit employee not working due to non-existing password field va…
…lidation
- Loading branch information
Showing
2 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
10 changes: 8 additions & 2 deletions
10
...vationSystem-Server/ReservationSystem-Server/Areas/Admin/Models/Employee/EditViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
namespace ReservationSystem_Server.Areas.Admin.Models.Employee; | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
public class EditViewModel : CreateViewModel | ||
namespace ReservationSystem_Server.Areas.Admin.Models.Employee; | ||
|
||
public class EditViewModel | ||
{ | ||
public string Id { get; set; } = null!; | ||
[EmailAddress] | ||
public string Email { get; set; } = null!; | ||
[Phone] | ||
public string? PhoneNumber { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters