コード例 #1
0
        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"));
        }