Exemple #1
0
 public async Task <IActionResult> Delete(int id, SampleTypeDtoSpecialized dto)
 {
     if (id.IsSent())
     {
         dto.SampleTypeId = id;
     }
     return(await base.Delete(dto, "Seed - SampleType"));
 }
        public async Task <IActionResult> Put([FromBody] SampleTypeDtoSpecialized dto)
        {
            var result = new HttpResult <SampleTypeDto>(this._logger);

            try
            {
                var returnModel = await this._app.SavePartial(dto);

                return(result.ReturnCustomResponse(this._app, returnModel));
            }
            catch (Exception ex)
            {
                return(result.ReturnCustomException(ex, "Seed - SampleType", dto));
            }
        }
Exemple #3
0
 public async Task <IActionResult> Put([FromBody] SampleTypeDtoSpecialized dto)
 {
     return(await base.Put(dto, "Seed - SampleType"));
 }