public async Task <ActionResult> ClosePartially(int id) { try { var debt = await _debtService.GetItemAsync(id); if (debt == null) { return(RedirectToAction("DebtList")); } var debtEditModel = new DebtEditModel(); await FillDebtViewModel(debt, debtEditModel); return(PartialView("_ClosePartially", debtEditModel)); } catch (ServiceException e) { throw new WebUiException($"Ошибка в контроллере {nameof(DebtController)} в методе {nameof(ClosePartially)}", e); } }