internal static ProfileModel ToProfileModel(BllProfile bllprofile) { if(bllprofile!=null) return new ProfileModel() { Id = bllprofile.Id, Receiver = bllprofile.Receiver, City = bllprofile.City, Address = bllprofile.Address, Phone = bllprofile.Phone }; return null; }
public void UpdateProfile(BllProfile bllprofile) { profileRepository.Update(Maper.ToDalProfile(bllprofile)); uow.Commit(); }
internal static DalProfile ToDalProfile(BllProfile bllprofile) { if (bllprofile!=null) return new DalProfile() { Id = bllprofile.Id, Receiver = bllprofile.Receiver, CountryId = bllprofile.CountryId, City = bllprofile.City, Address = bllprofile.Address, Phone = bllprofile.Phone }; return null; }