App.Core.Controllers.AccountsController.Create C# (CSharp) Method

Create() public method

public Create ( Account account ) : System.Web.Mvc.ActionResult
account Account
return System.Web.Mvc.ActionResult
        public ActionResult Create(Account account)
        {
            if (ModelState.IsValid) {
                repository.Save(account);
                return RedirectToAction("Index");
            }

            return RedirectToAction("New");
        }