public int Create(JobBM model) { Job tech = ConvertToDM(model); uow.JobRepository.Add(tech); uow.Save(); return tech.Id; }
public void Update(JobBM model) { uow.JobRepository.Update(ConvertToDM(model)); uow.Save(); }
private Job ConvertToDM(JobBM model) { return new Job { Id = model.Id, EmployerId=model.EmployerId, Headline=model.Headline, JobRole=model.JobRole, JobSkill=model.JobSkill, JobFunction=model.JobFunction, CountryId=model.CountryId, StateId=model.StateId, CityId=model.CityId, CommunityId=model.CommunityId, SubCommunityId=model.SubCommunityId, EducationQualification=model.EducationQualification, ExpYear=model.ExpYear, ExpMonth=model.ExpMonth, IndustryId=model.IndustryId, SalaryLakhs=model.SalaryLakhs, SalaryThousands = model.SalaryThousands, JobDescription=model.JobDescription, PostingDate=model.PostingDate, DateOfAdvExp=model.DateOfAdvExp, Email=model.Email, ContactPerson=model.ContactPerson, EmployementType=model.EmployementType, Active=model.Active, CreationDate=model.CreationDate, CreatedBy=model.CreatedBy, ModificationDate=model.ModificationDate, ModifiedBy=model.ModifiedBy, IsDeleted=model.IsDeleted }; }
public JsonResult PostJob(JobBM Model) { return Json("",JsonRequestBehavior.AllowGet); }