Example #1
0
 public void Update(Service service, string title, string description, decimal price)
 {
     if (ServiceValidationService.IsValid(service))
     {
         _repository.Update(_mapper.Map <Service, ServiceEntity>(service), title, description, price);
     }
 }
Example #2
0
 public void Create(Service service)
 {
     if (ServiceValidationService.IsValid(service))
     {
         _repository.Create(_mapper.Map <Service, ServiceEntity>(service));
     }
 }