예제 #1
0
        public AICPDAL.userdetail FetchUserdetailsDataBAL(AICPDAL.user userData, int UserID)
        {
            AICPDAL.UserProfileDAL DAL = new AICPDAL.UserProfileDAL();
            var userDetailData         = DAL.FetchUserdetailsData(userData, UserID);

            return(userDetailData);
        }
예제 #2
0
        //public List<SelectListItem> ()
        //{
        //    AICPDAL.UserProfileDAL DAL = new AICPDAL.UserProfileDAL();
        //    UserVM finalmemberlist = new UserVM();
        //    //  x.queList =  DAL.SecurityQuestionList();
        //    var memlist = DAL.memberTypeList();

        //    foreach (var item in memlist.ToList())
        //    {
        //        finalmemberlist.memberList.Add(new SelectListItem() { Text = item.RoleName, Value = item.RoleID.ToString() });
        //    }

        //    return finalmemberlist.memberList;



        //        var jobData = db.jobs.Where(x => x.jobname.Contains(keyword) && x.Location.Contains(location)).ToList();
        //        foreach (var item in jobData)
        //        {
        //            searchData.Add(new JobSearch() { JobName = item.jobname, Company = item.company, Location = item.Location });
        //        }

        //}


        public void CreateNewUser(AICPJOBPORTAL.ViewModel.UserVM UserInformation)
        {
            // string replyMessage = "Error occured While Creating the User";

            AICPDAL.UserProfileDAL DAL = new AICPDAL.UserProfileDAL();

            AICPDAL.userdetail objUserDetail = new AICPDAL.userdetail();
            AICPDAL.user       objUser       = new AICPDAL.user();

            PropertyCopier.Copy(UserInformation.objUserDetail, objUserDetail);
            PropertyCopier.Copy(UserInformation.objUserInitials, objUser);
            objUser.Password = UserInformation.Password;


            DAL.CreateNewUser(objUserDetail, objUser);
        }