Пример #1
0
        public async Task <ActionResult> DeleteAsync(int id)
        {
            const string actionName = nameof(DeleteAsync);

            Logger.LogDebug(LoggingMessage.ProcessingRequestWithModel, actionName, id);
            await _orderAppService.DeleteAsync(id);

            Logger.LogInfomation(LoggingMessage.RequestResults, actionName);

            return(NoContent());
        }
Пример #2
0
 public Task DeleteAsync(Guid id)
 {
     return(_service.DeleteAsync(id));
 }
Пример #3
0
        public async Task <ActionResult> DeleteAsync([FromRoute] long id)
        {
            await _orderSrv.DeleteAsync(id);

            return(NoContent());
        }
Пример #4
0
 public Task DeleteAsync(Guid id)
 {
     return(_orderAppService.DeleteAsync(id));
 }