public string CreateJob(JobDetail jobDetailModel) { JobDetail jobDetail = new JobDetail(); jobDetail.JobId = "JD22"; jobDetail.JobTypeId = "test"; jobDetail.QualificationId = jobDetailModel.QualificationId; jobDetail.AcademicTypeId = jobDetailModel.AcademicTypeId; jobDetail.JobTitle = jobDetailModel.JobTitle; jobDetail.JobProfileId = jobDetailModel.JobProfileId; jobDetail.CompanyName = jobDetailModel.CompanyName; jobDetail.CompanyDetail = jobDetailModel.CompanyDetail; jobDetail.Mobile = jobDetailModel.Mobile; jobDetail.Email = jobDetailModel.Email; jobDetail.MinSalary = jobDetailModel.MinSalary; jobDetail.MaxSalary = jobDetailModel.MaxSalary; jobDetail.MinExperience = jobDetailModel.MinExperience; jobDetail.MaxExperience = jobDetailModel.MaxExperience; jobDetail.JobDescription = jobDetailModel.JobDescription; jobDetail.ModifiedBy = "ram"; jobDetail.ModifiedOn = DateTime.UtcNow.Date; jobDetail.CreatedBy = "ram"; jobDetail.CreatedOn = DateTime.UtcNow.Date; _dbContext.Add(jobDetail); // _dbContext.SaveChanges(); return("Success"); }
public void CreateJobProfile(JobProfile jobProfileModel) { JobProfile _jobProfile = new JobProfile(); _jobProfile.JobProfileId = jobProfileModel.JobProfileId; _jobProfile.JobProfileName = jobProfileModel.JobProfileName; _dbContext.Add(_jobProfile); // num = _dbContext.SaveChanges(); }
public string CreateUser(User userModel) { User user = new User(); user.UserId = userModel.UserId; user.Password = userModel.Password; user.FirstName = userModel.FirstName; user.LastName = userModel.LastName; user.Mobile = userModel.Mobile; user.Email = userModel.Email; _dbContext.Add(user); _dbContext.SaveChanges(); return("user created successfully"); }