PageRenderTime 51ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/App_Code/Account/DSPortals.cs

https://github.com/mailekah/AgapeConnect1
C# | 40 lines | 27 code | 6 blank | 7 comment | 0 complexity | a130c82bcac17cdf9d9e87b8e098ba52 MD5 | raw file
Possible License(s): BSD-3-Clause, Apache-2.0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Services;
  6. using AgapeConnect;
  7. /// <summary>
  8. /// Summary description for DSPortals
  9. /// </summary>
  10. [WebService(Namespace = "http://agapeconnect.me/")]
  11. [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
  12. // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
  13. [System.Web.Script.Services.ScriptService]
  14. public class DSPortals : System.Web.Services.WebService
  15. {
  16. public DSPortals()
  17. {
  18. //Uncomment the following line if using designed components
  19. //InitializeComponent();
  20. }
  21. [WebMethod]
  22. //public List<string> GetPortalsForUserJson(Guid _ssoguid)
  23. public List<DataserverPortal> GetPortalsForUserJson(string ssoguid)
  24. {
  25. return GetPortals(Guid.Parse(ssoguid));
  26. }
  27. public List<DataserverPortal> GetPortals(Guid _ssoguid)
  28. {
  29. DSUserPortalView userportal = new DSUserPortalView();
  30. List<DataserverPortal> portallist = new List<DataserverPortal>();
  31. portallist = userportal.GetPortals(_ssoguid);
  32. return portallist;
  33. }
  34. }