public IActionResult Save(UserDto userDto) { UserDto savedUserDto = _userService.Save(userDto); return(new CreatedResult( _servicesUtils .CreateUri( Request, Url.RouteUrl( "GetByEmailUserRoute", new { email = savedUserDto.Email })), savedUserDto)); }
public IActionResult Save(MeterModelDto meterModelDto) { MeterModelDto savedMeterModelDto = _meterModelService.Save(meterModelDto); return(new CreatedResult( _servicesUtils .CreateUri( Request, Url.RouteUrl( "GetByNameMeterModelRoute", new { name = savedMeterModelDto.Name })), savedMeterModelDto)); }
public IActionResult Save(SmcModelDto smcModelDto) { SmcModelDto savedSmcModelDto = _smcModelService.Save(smcModelDto); return(new CreatedResult( _servicesUtils .CreateUri( Request, Url.RouteUrl( "GetByNameSmcModelRoute", new { name = savedSmcModelDto.Name })), savedSmcModelDto)); }
public IActionResult Save(RateTypeDto rateTypeDto) { RateTypeDto savedRateTypeDto = _rateTypeService.Save(rateTypeDto); return(new CreatedResult( _servicesUtils .CreateUri( Request, Url.RouteUrl( "GetByNameRateTypeRoute", new { name = savedRateTypeDto.Name })), savedRateTypeDto)); }
public IActionResult Save(ManufacturerDto manufacturerDto) { ManufacturerDto savedManufacturerDto = _manufacturerService.Save(manufacturerDto); return(new CreatedResult( _servicesUtils .CreateUri( Request, Url.RouteUrl( "GetByNameManufacturerRoute", new { name = savedManufacturerDto.Name })), savedManufacturerDto)); }
public IActionResult Save(KeysDto keysDto) { var keys = _meterKeyService.Create(keysDto); return(new CreatedResult( _servicesUtils .CreateUri( Request, Url.RouteUrl( "GetBySerialRoute", new { serial = keys.Serial })), keysDto)); }
public IActionResult Save(SmcDto smcDto) { SmcDto savedSmcDto = _smcService.Save(smcDto); _eventService.ASmcWasSavedEvent(this, new IoGServicedEventArgs <SmcDto>(savedSmcDto)); return(new CreatedResult( _servicesUtils .CreateUri( Request, Url.RouteUrl( "GetBySerialSmcRoute", new { serial = savedSmcDto.Serial })), savedSmcDto)); }