Example #1
0
 public void Create(Dto.Service entity)
 {
     using (var uow = _uowFac.Create())
     {
         var data = _mapper.Map <Dto.Service, HsEntity.Service>(entity);
         uow.Repository <HsEntity.Service>().Insert(data);
         uow.Save();
     }
 }
Example #2
0
 public Save Create([FromBody] Dto.Service service)
 {
     _serviceBus.Create(service);
     return(new Save());
 }