public static ContactEmail DalToForEmailUserApi(this DalUser.Contact c) { return(new ContactEmail() { Id = c.Id, FullName = c.LastName + ' ' + c.FirstName, Email = c.Email, }); }
public static ContactDetailed DalToDetailedApi(this DalUser.Contact c) { return(new ContactDetailed() { Id = c.Id, NationalNumber = c.NationalNumber, LastName = c.LastName, FirstName = c.FirstName, BirthDate = c.BirthDate, AdCity = c.AdCity, AdPostalCode = c.AdPostalCode, AdStreet = c.AdStreet, AdNumber = c.AdNumber, AdBox = c.AdBox, MobilePhone = c.MobilePhone, Gender = c.Gender, Email = c.Email, PersonalNote = c.PersonalNote }); }