Exemplo n.º 1
0
        public ActionResult Create(Login login)
        {
            login.Id = Guid.NewGuid().ToString();
            bool   isSaved = _loginManager.Add(login);
            string mgs     = "";

            if (isSaved)
            {
                return(RedirectToAction("Index"));
            }
            else
            {
                mgs = "Saved failed";
            }
            ViewBag.Mgs = mgs;
            return(View());
        }