Esempio n. 1
0
 /// <summary>
 /// Gets organization products
 /// </summary>
 /// <param name="orgid"></param>
 /// <returns>List<RefOrganizationProductContract></returns>
 public List <RefOrganizationProductContract> GetOrganizationProducts(int orglId)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.GetOrgProducts(orglId)).ToList());
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Gets all products.
 /// </summary>
 /// <returns>List<RefProductContract></returns>
 public List <RefProductContract> GetAllProducts()
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.GetAllProducts()).ToList());
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Gets the user.
 /// </summary>
 /// <param name="userId">The user id.</param>
 /// <returns></returns>
 public static MemberContract GetUserByUserId(int userId)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.GetUserByUserId(userId)));
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Gets the user's organizations.
 /// </summary>
 /// <param name="userId">The user id.</param>
 /// <returns></returns>
 public static List <MemberOrganizationContract> GetUserOrganizations(int userId)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.GetUserOrganizations(userId)).ToList());
     }
 }
Esempio n. 5
0
 public static bool UpsertMemberRoles(int memberId, MemberRoleContract[] memberRoles, string modifiedBy)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.UpsertMemberRoles(memberId, memberRoles, modifiedBy)));
     }
 }
Esempio n. 6
0
 /// <summary>
 /// Gets all organizations.
 /// </summary>
 /// <returns></returns>
 public List <RefOrganizationContract> GetAllOrganizations()
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.GetAllOrgs()).ToList());
     }
 }
Esempio n. 7
0
 /// <summary>
 /// Gets RefMemberRoles
 /// </summary>
 /// <returns></returns>
 public IEnumerable <RefMemberRoleContract> GetAllRefUserRoles()
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.GetAllRefUserRoles()));
     }
 }
Esempio n. 8
0
 /// <summary>
 /// Deletes the alert.
 /// </summary>
 /// <param name="alertId">The alert id.</param>
 /// <returns></returns>
 public static bool DeleteAlert(int alertId)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.DeleteAlert(alertId)));
     }
 }
Esempio n. 9
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public List <vMemberAcademicInfoContract> GetMembersBySearchParms(Nullable <Int32> MemberID, String FirstName, String LastName, String EmailAddress, AsyncCallback callback)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.ExecuteAsync(proxy => proxy.GetMembersBySearchParms(MemberID, FirstName, LastName, EmailAddress), callback, null).ToList());
     }
 }
Esempio n. 10
0
 /// <summary>
 /// Gets the user by active directory key.
 /// </summary>
 /// <param name="activeDirectoryKey">The active directory key.</param>
 /// <returns></returns>
 public static MemberContract GetUserByActiveDirectoryKey(string activeDirectoryKey)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.GetUserByActiveDirectoryKey(new Guid(activeDirectoryKey))));
     }
 }
Esempio n. 11
0
 /// <summary>
 /// Gets the organization by OE and Branch code.
 /// </summary>
 /// <param name="opeCode">The ope code.</param>
 /// <param name="branchCode">The branch code.</param>
 /// <returns></returns>
 public RefOrganizationContract GetOrganization(string opeCode, string branchCode)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.GetOrg(opeCode, branchCode)));
     }
 }
Esempio n. 12
0
 /// <summary>
 /// Gets the user.
 /// </summary>
 /// <param name="userId">The user id.</param>
 /// <param name="callback">The callback.</param>
 public static MemberContract GetUserByUserId(int userId, AsyncCallback callback)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.ExecuteAsync(proxy => proxy.GetUserByUserId(userId), callback, userId));
     }
 }
Esempio n. 13
0
 /// <summary>
 /// Updates a row in the RefRegistrationSource table
 /// </summary>
 /// <param name="refRegistrationSourceContract">updated RefRegistrationSource field values</param>
 /// <returns>bool</returns>
 public bool UpdateRefRegistrationSource(RefRegistrationSourceContract refRegistrationSourceContract)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.UpdateRefRegistrationSource(refRegistrationSourceContract)));
     }
 }
Esempio n. 14
0
 /// <summary>
 /// Updates a row in the RefCampaign table
 /// </summary>
 /// <param name="refCampaignContract">updated RefCampaign field values</param>
 /// <returns>bool</returns>
 public bool UpdateRefCampaign(RefCampaignContract refCampaignContract)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.UpdateRefCampaign(refCampaignContract)));
     }
 }
Esempio n. 15
0
 /// <summary>
 /// Gets member roles
 /// </summary>
 /// <param name="MemberID"></param>
 /// <returns></returns>
 public static IEnumerable <MemberRoleContract> GetMemberRoles(int MemberID)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.GetMemberRoles(MemberID)));
     }
 }
Esempio n. 16
0
 /// <summary>
 /// Gets RefChannels
 /// </summary>
 /// <returns></returns>
 public IEnumerable <RefChannelContract> GetAllRefChannels()
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.GetAllRefChannels()));
     }
 }
Esempio n. 17
0
 /// <summary>
 /// Gets RefRegistrationSourceTypes
 /// </summary>
 /// <returns></returns>
 public IEnumerable <RefRegistrationSourceTypeContract> GetAllRefRegistrationSourceTypes()
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.GetAllRefRegistrationSourceTypes()));
     }
 }
Esempio n. 18
0
 /// <summary>
 /// Gets the user by username.
 /// </summary>
 /// <param name="username">The username.</param>
 /// <returns></returns>
 public static MemberContract GetUserByUsername(string username)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.GetUserByUsername(username)));
     }
 }
Esempio n. 19
0
 public bool UpdateOrgProductsSubscription(int iOrgID, System.Data.DataTable productTable, string sModifiedBy)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.UpdateOrgProductsSubscription(iOrgID, productTable, sModifiedBy)));
     }
 }
Esempio n. 20
0
 /// <summary>
 /// Updates OrgInfoFlags.
 /// </summary>
 /// <param name="iOrgID">The user id.</param>
 /// <param name="bIsLookupAllowed">boolean.</param>
 /// <returns></returns>
 public bool UpdateOrgInfoFlags(int iOrgID, bool bIsLookupAllowed, string sModifiedBy)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.UpdateOrgInfoFlags(iOrgID, bIsLookupAllowed, sModifiedBy)));
     }
 }
Esempio n. 21
0
 /// <summary>
 /// Gets the organization by organiztion id.
 /// </summary>
 /// <param name="organizationId">The RefOrganizationId.</param>
 /// <returns>RefOrganizationContract</returns>
 public RefOrganizationContract GetOrganization(int organizationId)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.GetOrgByOrganizationId(organizationId)));
     }
 }
Esempio n. 22
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public static List <vMemberAcademicInfoContract> GetMembersBySearchParms(String FirstName, String LastName, AsyncCallback callback)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.ExecuteAsync(proxy => proxy.GetMembersBySearchParms(null, FirstName, LastName, ""), callback, null).ToList());
     }
 }
Esempio n. 23
0
 /// <summary>
 /// Updates the user asynchronously
 /// </summary>
 /// <param name="user">The user.</param>
 /// <param name="callback">The callback.</param>
 public static void UpdateUser(MemberContract user, AsyncCallback callback)
 {
     using (var client = new SaltServiceProxy())
     {
         client.ExecuteAsync(proxy => proxy.UpdateUser(user), callback, null);
     }
 }
Esempio n. 24
0
 /// <summary>
 /// Updates the user.
 /// </summary>
 /// <param name="user">The user.</param>
 /// <returns></returns>
 public static MemberUpdateStatus UpdateUser(MemberContract user)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.UpdateUser(user)));
     }
 }
Esempio n. 25
0
 /// <summary>
 /// Deactivates the user.
 /// </summary>
 /// <param name="userId">The user id.</param>
 /// <returns></returns>
 public bool UpsertOrgToDoList(OrganizationToDoListContract orgToDoListItem)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.UpsertOrgToDoListItem(orgToDoListItem)));
     }
 }
Esempio n. 26
0
 /// <summary>
 /// Deactivates the user.
 /// </summary>
 /// <param name="userId">The user id.</param>
 /// <returns></returns>
 public static bool DeactivateUser(int userId, string modifierUserName = null)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.DeactivateUser(userId, modifierUserName)));
     }
 }
Esempio n. 27
0
 /// <summary>
 /// Registers the user.
 /// </summary>
 /// <param name="user">The user.</param>
 /// <returns></returns>
 public static RegisterMemberResultContract RegisterUser(UserRegistrationContract user)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.RegisterUser(user)));
     }
 }
Esempio n. 28
0
 /// <summary>
 /// Gets Member activation history
 /// </summary>
 /// <returns></returns>
 public static List <MemberActivationHistoryContract> GetUserActivationHistory(int userId)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.GetUserActivationHistory(userId)).ToList());
     }
 }
Esempio n. 29
0
        /// <summary>
        /// Gets a list of organizations based on the name
        /// </summary>
        /// <returns></returns>
        public static OrgPagedListContract GetOrganizations(string name, int rowsPerPage, int rowOffset)
        {
            var orgTypeList = new string[] { "School" };

            using (var client = new SaltServiceProxy())
            {
                return(client.Execute(proxy => proxy.GetOrgs(name, orgTypeList, rowsPerPage, rowOffset)));
            }
        }
Esempio n. 30
0
        /// <summary>
        /// Gets the user.
        /// </summary>
        /// <param name="userId">The user id.</param>
        /// <param name="callback">The callback.</param>
        public static Tuple <IEnumerable <vMemberAcademicInfoContract>, int> GetMembersAcademicInfoView(int startRowIndex, int maximumRows, AsyncCallback callback)
        {
            using (var client = new SaltServiceProxy())
            {
                var result = client.ExecuteAsync(proxy => proxy.GetMembersAcademicInfoView(startRowIndex, maximumRows), callback, null);

                IEnumerable <vMemberAcademicInfoContract> _vMemInfo = result.Item1;
                int _vMemCount = result.Item2;
                return(Tuple.Create(_vMemInfo, _vMemCount));
            }
        }