public async Task<IActionResult> Delete(SolicitacaoEstoqueDto dto)
 {
     var result = new HttpResult<SolicitacaoEstoqueDto>(this._logger);
     try
     {
         await this._app.Remove(dto);
         return result.ReturnCustomResponse(this._app, dto);
     }
     catch (Exception ex)
     {
         return result.ReturnCustomException(ex,"Calemas.Erp - SolicitacaoEstoque", dto);
     }
 }
Пример #2
0
        public async Task <IActionResult> Delete(SolicitacaoEstoqueDto dto)
        {
            var result = new HttpResult <SolicitacaoEstoqueDto>(this._logger, this._service);

            try
            {
                await this._service.Remove(dto);

                return(result.ReturnCustomResponse(dto));
            }
            catch (Exception ex)
            {
                return(result.ReturnCustomException(ex, "SolicitacaoEstoque", dto));
            }
        }