// GET: Profile public ActionResult ChangePassword() { ChangePasswordDetails password = new ChangePasswordDetails(); int id = SessionData.UserId; try { password = AdminLogic.GetChangePasswordDetails(SessionData.UserId); } catch (Exception e) { LogsLogic.InsertLog(new Log() { Message = e.Message, StackTrace = e.StackTrace, StoryName = "ManagmentProject/Profile/ChangePassword" }); //return RedirectToAction("GeneralError", "Error", new { ErrorMessage = Error.ServerNotRespond }); } return(View(password)); }