public ActionResult UpdateUserDetailsToDB(User model) { User updatedModel = DALayer.UpdateUserInfo(model); SetProperty(SessionVariableNames.Current_User, updatedModel); return(RedirectToAction("Index")); }