Advertisement
Guest User

Untitled

a guest
May 6th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public JsonResult SetGridProperties(Response<T> res)
  2. {
  3. res.ShowFilterRow = (!res.ShowFilterRow);
  4. return Json(true, JsonRequestBehavior.AllowGet);
  5. }
  6.  
  7. public class Response<T>
  8. {
  9. public bool Status { get; set; }
  10.  
  11. public string Message { get; set; }
  12.  
  13. public T Data { get; set; }
  14.  
  15. public List<T> DataList { get; set; }
  16.  
  17. public MessageTypes MessageType { get; set; }
  18.  
  19. public bool ShowFilterRow { get; set; }
  20. public bool AllowGroup { get; set; }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement