Esempio n. 1
0
 public async Task <IActionResult> Delete(int id, SampleDtoSpecialized dto)
 {
     if (id.IsSent())
     {
         dto.SampleId = id;
     }
     return(await base.Delete(dto, "Seed - Sample"));
 }
Esempio n. 2
0
        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()));
            }
        }
Esempio n. 3
0
 public async Task <IActionResult> Put([FromBody] SampleDtoSpecialized dto)
 {
     return(await base.Put(dto, "Seed - Sample"));
 }