Ejemplo n.º 1
0
        public List <UsersDetailsModel> GetUsersDetailList(Guid?UserDetailId)
        {
            List <UsersDetailsModel> detaillist        = new List <UsersDetailsModel>();
            UserManagementDAL        userManagementDAL = new UserManagementDAL();

            try
            {
                var data = userManagementDAL.GetUsersDetailList(UserDetailId);
                if (data.Count > 0)
                {
                    data.ForEach(x =>
                    {
                        UsersDetailsModel detail = new UsersDetailsModel();
                        detail.Id                  = x.ID;
                        detail.UserDetailId        = x.UserDetailId;
                        detail.Name                = x.Name;
                        detail.Email               = x.Email;
                        detail.MobileNumber        = x.MobileNumber;
                        detail.Degree              = x.Degree;
                        detail.Institution         = x.Institution;
                        detail.Major               = x.Major;
                        detail.Percentage          = x.Percentage;
                        detail.Gender              = x.Gender;
                        detail.Address             = x.Address;
                        detail.SSLCPassedOutYear   = x.SSLCPassedOutYear;
                        detail.SSLCPercentage      = x.SSLCPercentage;
                        detail.SSLCBoardName       = x.SSLCBoardName;
                        detail.TechnicalSkills     = x.TechnicalSkills;
                        detail.HSCPercentage       = x.HSCPercentage;
                        detail.LastName            = x.LastName;
                        detail.DOB                 = x.DOB;
                        detail.State               = x.State;
                        detail.DegreePassedOutYear = x.DegreePassedOutYear;
                        detail.HSCBoardName        = x.HSCBoardName;
                        detail.HSCPassedOutYear    = x.HSCPassedOutYear;
                        detaillist.Add(detail);
                    });
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(detaillist);
        }
Ejemplo n.º 2
0
        public List <UsersDetailsModel> GetUsersDetailList(Guid?UserDetailId)
        {
            List <UsersDetailsModel> detaillist        = new List <UsersDetailsModel>();
            UserManagementDAL        userManagementDAL = new UserManagementDAL();

            try
            {
                var data = userManagementDAL.GetUsersDetailList(UserDetailId);
                if (data.Count > 0)
                {
                    data.ForEach(x =>
                    {
                        UsersDetailsModel detail = new UsersDetailsModel();
                        detail.Id            = x.ID;
                        detail.UserDetailId  = x.UserDetailId;
                        detail.Name          = x.Name;
                        detail.Email         = x.Email;
                        detail.MobileNumber  = x.MobileNumber;
                        detail.Degree        = x.Degree;
                        detail.Institution   = x.Institution;
                        detail.Major         = x.Major;
                        detail.Percentage    = x.Percentage;
                        detail.Gender        = x.Gender;
                        detail.Address       = x.Address;
                        detail.CustomField1  = x.CustomField1;
                        detail.CustomField2  = x.CustomField2;
                        detail.CustomField3  = x.CustomField3;
                        detail.CustomField4  = x.CustomField4;
                        detail.CustomField5  = x.CustomField5;
                        detail.CustomField6  = x.CustomField6;
                        detail.CustomField7  = x.CustomField7;
                        detail.CustomField8  = x.CustomField8;
                        detail.CustomField9  = x.CustomField9;
                        detail.CustomField10 = x.CustomField10;
                        detaillist.Add(detail);
                    });
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(detaillist);
        }