public async Task <ActionResult> CloseDebt(int id) { OperationDetails operationDetails = await debtService.CloseDebt(id); if (operationDetails.Succedeed) { return(RedirectToAction("Index", "Debt")); } ModelState.AddModelError(operationDetails.Property, operationDetails.Message); return(RedirectToAction("Index", "Debt")); }