Beispiel #1
0
 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();
 }
Beispiel #3
0
 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;
 }