public async Task <ActionResult> Close(int id) { try { await _debtService.CloseAsync(id); } catch (ServiceException e) { throw new WebUiException($"Ошибка в контроллере {nameof(DebtController)} в методе {nameof(Close)}", e); } return(RedirectToAction("DebtList")); }