public ActionResult UploadAvatar(HttpPostedFileBase UploadAvatar) { try { int userID = UserLoginData.GetSessionID(Session["UserLoggedIn"]); userBLL.ChangeAvatar(UploadAvatar, userID); return(RedirectToAction("ProfileManagement")); } catch (Exception ex) { return(this.ManageException(ex, "ProfileManagement")); } }