Esempio n. 1
0
        public ActionResult AddUser(user u)
        {
            bool result = repo.Register(u);

            if (result)
            {
                ViewBag.Msg = "User Added Successfully!";
            }
            else
            {
                ViewBag.ErrorMsg = "Error occured while adding user";
            }
            return(View("UserRegister"));
        }