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(); } }
public Save Create([FromBody] Dto.Service service) { _serviceBus.Create(service); return(new Save()); }