public ViewResult GetUserWallsCode(UserWallData data) { Compression.SetCompression(); data.Name = Model.GetUserWallName(data.Wall_ID); data.Codes = Model.GetUsersWallCodes(data.Wall_ID, data.Page, data.Sort); data.TotalRecords = Model.GetUserWallCodesTotal(data.Wall_ID); data.IsOwner = Model.IsWallsOwner(data.Wall_ID); data.IsAdmin = SessionManager.IsAdmin; int wall_id; if(Int32.TryParse(data.Wall_ID, out wall_id)) data.IsSubscribed = Model.IsUserSubscribed(wall_id); return View("UserWall", data); }
public ViewResult GetUserWallsCode(UserWallData data) { Compression.SetCompression(); data.Name = Model.GetUserWallName(data.Wall_ID); data.Codes = Model.GetUsersWallCodes(data.Wall_ID, data.Page, data.Sort); data.TotalRecords = Model.GetUserWallCodesTotal(data.Wall_ID); data.IsOwner = Model.IsWallsOwner(data.Wall_ID); data.IsAdmin = SessionManager.IsAdmin; int wall_id; if (Int32.TryParse(data.Wall_ID, out wall_id)) { data.IsSubscribed = Model.IsUserSubscribed(wall_id); } return(View("UserWall", data)); }