Пример #1
0
 public void UpdateProfile(SalonViewModel model)
 {
     if (model != null)
     {
         var salon = _salonRepository.FindById(model.SalonId);
         if (salon != null)
         {
             salon.Name    = model.Name;
             salon.Phone   = model.Phone;
             salon.Address = model.Address;
             _salonRepository.Update(salon);
             _unitOfWork.Save();
         }
     }
 }