Ejemplo n.º 1
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());
     }
 }
Ejemplo n.º 2
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));
     }
 }
Ejemplo n.º 3
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());
     }
 }
Ejemplo n.º 4
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);
     }
 }
Ejemplo n.º 5
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));
            }
        }