예제 #1
0
        public ActionResult AddUser(UsersViewModel model)
        {
            bool isAdded = _UsersBusinessLogic.AddUser(mapper.ConvertUserToBLL(model));

            if (isAdded == true)
            {
                TempData["Success"] = MStart.Common.App_LocalResources.Resource.UpdateSucces;
                return(RedirectToAction("Index"));
            }
            else
            {
                TempData["Error"] = MStart.Common.App_LocalResources.Resource.UpdateFailed;
                return(RedirectToAction("Index"));
            }
        }