Guest User

Untitled

a guest
Jan 11th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. public JsonResult GetFaxPoolOverView()
  2. {
  3. var au = GetDetails;
  4. if (au == null)
  5. {
  6. return Json(new JsonResultModel() { LogedOut = true }, JsonRequestBehavior.AllowGet);
  7. }
  8.  
  9. List<PoolOverviewModel> inv = FaxApi.GetDasboardFaxInventory(au);
  10. return Json(new JsonResultModel(inv) { LogedOut = (inv == null) }, JsonRequestBehavior.AllowGet);
  11. }
  12.  
  13. private AuthenticationModel GetDetails
  14. {
  15. get { return Helpers.LoginHelpers.GetAuthenticationDetails(this, ClassName); }
  16. }
  17.  
  18. public static List<PoolOverviewModel> GetDasboardFaxInventory(AuthenticationModel au)
  19. {
  20. List<PoolOverviewModel> poolList = new List<PoolOverviewModel>();
  21. try
  22. {
  23. var client = GetWebService();
  24. {
  25. //au.CustomerId = 78462
  26. ListInventoryMarketsResponse response = client.ListInventoryMarkets(new ListInventoryMarketsRequest { Authentication = au.Authentication, CustomerId = au.CustomerId, Filters = null });
  27. if (response.Success && response.InventoryMarketList != null) {
  28. //.....
  29. }
  30. }
  31. }
  32. }
Add Comment
Please, Sign In to add comment