public ActionResult ChangePassword(string oldpass = "", string newpass = "", string confirm = "") { if (!Permission(new int[] { RolesInt.Admin, RolesInt.Anbar, RolesInt.Tajer })) { return(Return()); } if (!string.IsNullOrEmpty(oldpass) && !string.IsNullOrEmpty(newpass) && !string.IsNullOrEmpty(confirm)) { TempData["ChangePass"] = Members.Changepass(oldpass, newpass, confirm); return(View(SProfile, Members.User)); } else { return(View(SProfile, Members.User)); } }