public static UserDetailed DalToDetailedUserApi(this DalUser.User user) { return(new UserDetailed() { Id = user.Id, NationalNumber = user.NationalNumber, LastName = user.LastName, FirstName = user.FirstName, Birthdate = user.Birthdate, AdCity = user.AdCity, AdPostalCode = user.AdPostalCode, AdStreet = user.AdStreet, AdNumber = user.AdNumber, AdBox = user.AdBox, MobilePhone = user.MobilePhone, Login = user.Login, Gender = user.Gender, Photo = user.Photo, PersonalNote = user.PersonalNote, StartDate = user.StartDate, lastResetPwd = user.FirstLogin, Email = user.Email, ClassId = user.ClassId, StatusCode = user.StatusCode }); }
public static UserForEmails DalToForEmailsUserApi(this DalUser.User user) { return(new UserForEmails() { Id = user.Id, FullName = user.LastName + ' ' + user.FirstName, StatusCode = user.StatusCode, Gender = user.Gender, Photo = user.Photo, }); }
public static UserForEntities DalToForEntitiesApi(this DalUser.User user) { return(new UserForEntities() { Id = user.Id, LastName = user.LastName, FirstName = user.FirstName, NationalNumber = user.NationalNumber, ClassId = user.ClassId, StatusCode = user.StatusCode, Email = user.Email }); }
public static UserSimplified DalToSimplifiedUserApi(this DalUser.User user) { return(new UserSimplified() { Id = user.Id, LastName = user.LastName, FirstName = user.FirstName, Birthdate = user.Birthdate, Login = user.Login, Gender = user.Gender, lastResetPwd = user.FirstLogin, StatusCode = user.StatusCode, ClassId = user.ClassId, }); }