public async Task <IActionResult> Delete(int id, SampleDtoSpecialized dto) { if (id.IsSent()) { dto.SampleId = id; } return(await base.Delete(dto, "Seed - Sample")); }
public async Task <IActionResult> Put([FromBody] SampleDtoSpecialized dto) { var result = new HttpResult <SampleDto>(this._logger); try { var returnModel = await this._app.SavePartial(dto); return(result.ReturnCustomResponse(this._app, returnModel)); } catch (Exception ex) { return(result.ReturnCustomException(ex, "Seed - Sample", dto, new ErrorMapCustom())); } }
public async Task <IActionResult> Put([FromBody] SampleDtoSpecialized dto) { return(await base.Put(dto, "Seed - Sample")); }