public static DentistDTO ApplicationUserToDTO(ApplicationUser applicationUser)
 {
     return(new DentistDTO
     {
         Id = applicationUser.Id,
         Email = applicationUser.Email,
         FirstName = applicationUser.FirstName,
         LastName = applicationUser.LastName,
         PhoneNumber = applicationUser.PhoneNumber,
         AffiliateDTO = applicationUser.Affiliate is null ? null : AffiliateMapper.AffiliateToDTO(applicationUser.Affiliate),
     });
 public static UserDTO ApplicationUserToDTO(ApplicationUser applicationUser)
 {
     return(new UserDTO
     {
         Id = applicationUser.Id,
         Email = applicationUser.Email,
         FirstName = applicationUser.FirstName,
         LastName = applicationUser.LastName,
         PhoneNumber = applicationUser.PhoneNumber,
         AffiliateDTO = applicationUser.Affiliate is null ? null : AffiliateMapper.AffiliateToDTO(applicationUser.Affiliate),
         RoleDTO = applicationUser.UserRoles.Count == 0 ? null : RoleMapper.UserRoleToDTO(applicationUser.UserRoles.First())
     });