public static Models.User ToUser(this Domain.Entities.Entity.UserDetail userDetails, Models.User data)
 {
     if (userDetails != null)
     {
         data.FirstName   = userDetails.FirstName;
         data.MiddleName  = userDetails.MiddleName;
         data.LastName    = userDetails.LastName;
         data.PhoneNumber = userDetails.PhoneNumber;
         data.BirthDate   = userDetails.BirthDate;
     }
     return(data);
 }
 public static Models.PersonalDetail ToUserDetails(this Domain.Entities.Entity.UserDetail userDetails, int userId)
 {
     return(userDetails != null ? new Models.PersonalDetail
     {
         UserId = userId,
         Address = userDetails.Address,
         City = userDetails.City,
         State = userDetails.State,
         Pincode = userDetails.Pincode,
         Country = userDetails.Country,
         Qualification = userDetails.Qualification,
         JobTitle = userDetails.JobTitle,
         Photo = userDetails.Photo
     } : null);
 }