Esempio n. 1
0
 public int Create(JobBM model)
 {
     Job tech = ConvertToDM(model);
     uow.JobRepository.Add(tech);
     uow.Save();
     return tech.Id;
 }
Esempio n. 2
0
 public void Update(JobBM model)
 {
     uow.JobRepository.Update(ConvertToDM(model));
     uow.Save();
 }
Esempio n. 3
0
        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

            };
        }
Esempio n. 4
0
 public JsonResult PostJob(JobBM Model)
 {
     return Json("",JsonRequestBehavior.AllowGet);
 }