コード例 #1
0
        public ActionResult Edit(EditBudgetView budget)
        {
            if (ModelState.IsValid)
            {
                var response = MovementsHelper.EditBudget(budget);
                if (response.Succeeded)
                {
                    return(RedirectToAction("Index"));
                }

                ModelState.AddModelError(string.Empty, response.Message);
            }
            return(View(budget));
        }