Example #1
0
        public ActionResult ManageUser(string id)
        {
            ManageUserModel UserModel = new ManageUserModel();
            Guid            guid;

            if (!string.IsNullOrEmpty(id))
            {
                guid = new Guid(id);

                UserModel.GetUser(guid);
            }


            if (TempData["savesuccess"] != null)
            {
                if (TempData["savesuccess"].ToString() == "savesuccess")
                {
                    ViewBag.success = "success";
                }
                else
                {
                    ViewBag.success = "unsuccess";
                }
            }

            return(View("~/Views/Admin/User/manage-user.cshtml", UserModel));
        }