public object GetMember(MemberPro member)
        {
            List <object> MemberListDetails = new List <object>();
            dynamic       MemberListDetailResult;

            try
            {
                List <MemberDetail> result = MemberMaster.GetMember(member.memberProfileId, member.groupId);
                for (int i = 0; i < result.Count; i++)
                {
                    MemberListDetails.Add(new { MemberListDetail = result[i] });
                }

                if (MemberListDetails != null)
                {
                    MemberListDetailResult = new { status = "0", message = "sucess", MemberDetails = MemberListDetails };
                }
                else
                {
                    MemberListDetailResult = new { status = "1", message = "User Not Found" };
                }
            }
            catch
            {
                MemberListDetailResult = new { status = "1", message = "An error occured. Please contact Administrator" };
            }
            return(new
            {
                MemberListDetailResult
            });
        }
        public object GetMemberWithDynamicFields(MemberPro member)
        {
            dynamic MemberListDetailResult;

            try
            {
                MemberDetailsDynamicField result = MemberMaster.GetMemberDtlWithDynamicFeild(member.memberProfileId, member.groupId);
                if (result != null)
                {
                    MemberListDetailResult = new { status = "0", message = "sucess", MemberDetails = result };
                }
                else
                {
                    MemberListDetailResult = new { status = "1", message = "User Not Found" };
                }
            }
            catch
            {
                MemberListDetailResult = new { status = "1", message = "An error occured. Please contact Administrator" };
            }
            return(new
            {
                MemberListDetailResult
            });
        }
Пример #3
0
        public object GetrotarianDetails(MemberPro profile)
        {
            dynamic TBGetRotarianResult;

            try
            {
                RotarianDetailsOutput Result = FindRotarian.GetRotarianDetails(profile.memberProfileId);

                if (Result != null)
                {
                    TBGetRotarianResult = new { status = "0", message = "success", Result };
                }
                else
                {
                    TBGetRotarianResult = new { status = "0", message = "Record not found" };
                }
            }
            catch
            {
                TBGetRotarianResult = new { status = "1", message = "failed" };
            }
            return(new { TBGetRotarianResult });
        }