public List <AccessInfo> AccessInfo(Int64 Id) { try { TSS_SiteContactDL scd = new TSS_SiteContactDL(); DataTable dt = scd.GetAccessInfo("Get_Site_AccessInfo_API", Id); List <AccessInfo> AccessInfo = dt.ToList <AccessInfo>(); return(AccessInfo); } catch (Exception) { throw; } }
public List <TSS_SiteContact> ContactInfo(Int64 Id) { try { TSS_SiteContactDL scd = new TSS_SiteContactDL(); DataTable dt = scd.GetContactInfo("Get_Site_Contact", Id); List <TSS_SiteContact> Contacts = dt.ToList <TSS_SiteContact>(); return(Contacts); } catch (Exception) { throw; } }