Firebase_Implementation #135
@ -3,18 +3,18 @@
|
|||||||
public class CreateUserDto
|
public class CreateUserDto
|
||||||
{
|
{
|
||||||
public Guid? Id { get; set; }
|
public Guid? Id { get; set; }
|
||||||
public string? FirstName { get; set; }
|
public required string FirstName { get; set; }
|
||||||
public string? LastName { get; set; }
|
public string? LastName { get; set; }
|
||||||
public string? MiddleName { get; set; }
|
public string? MiddleName { get; set; }
|
||||||
public string? Email { get; set; }
|
public string? Email { get; set; }
|
||||||
|
|
||||||
public string? Gender { get; set; }
|
public required string Gender { get; set; }
|
||||||
public string? BirthDate { get; set; }
|
public required string BirthDate { get; set; }
|
||||||
public string? JoiningDate { get; set; }
|
public required string JoiningDate { get; set; }
|
||||||
|
|
||||||
public string? PermanentAddress { get; set; }
|
public required string PermanentAddress { get; set; }
|
||||||
public string? CurrentAddress { get; set; }
|
public required string CurrentAddress { get; set; }
|
||||||
public string? PhoneNumber { get; set; }
|
public required string PhoneNumber { get; set; }
|
||||||
|
|
||||||
public string? EmergencyPhoneNumber { get; set; }
|
public string? EmergencyPhoneNumber { get; set; }
|
||||||
public string? EmergencyContactPerson { get; set; }
|
public string? EmergencyContactPerson { get; set; }
|
||||||
@ -33,10 +33,11 @@
|
|||||||
public class MobileUserManageDto
|
public class MobileUserManageDto
|
||||||
{
|
{
|
||||||
public Guid? Id { get; set; }
|
public Guid? Id { get; set; }
|
||||||
public string FirstName { get; set; } = string.Empty;
|
public required string FirstName { get; set; }
|
||||||
public string? LastName { get; set; }
|
public required string LastName { get; set; }
|
||||||
public string PhoneNumber { get; set; } = string.Empty;
|
public required string PhoneNumber { get; set; }
|
||||||
public string? Gender { get; set; }
|
public required DateTime JoiningDate { get; set; }
|
||||||
|
public required string Gender { get; set; }
|
||||||
public Guid JobRoleId { get; set; }
|
public Guid JobRoleId { get; set; }
|
||||||
public string? ProfileImage { get; set; }
|
public string? ProfileImage { get; set; }
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@ namespace Marco.Pms.Model.Mapper
|
|||||||
PhoneNumber = model.PhoneNumber,
|
PhoneNumber = model.PhoneNumber,
|
||||||
Photo = image,
|
Photo = image,
|
||||||
JobRoleId = model.JobRoleId,
|
JobRoleId = model.JobRoleId,
|
||||||
JoiningDate = null,
|
JoiningDate = model.JoiningDate,
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -502,6 +502,7 @@ namespace MarcoBMS.Services.Controllers
|
|||||||
existingEmployee.LastName = model.LastName;
|
existingEmployee.LastName = model.LastName;
|
||||||
existingEmployee.Gender = model.Gender;
|
existingEmployee.Gender = model.Gender;
|
||||||
existingEmployee.PhoneNumber = model.PhoneNumber;
|
existingEmployee.PhoneNumber = model.PhoneNumber;
|
||||||
|
existingEmployee.JoiningDate = model.JoiningDate;
|
||||||
existingEmployee.JobRoleId = model.JobRoleId;
|
existingEmployee.JobRoleId = model.JobRoleId;
|
||||||
existingEmployee.Photo = imageBytes;
|
existingEmployee.Photo = imageBytes;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user