public Models.JobOpportunity ToEntity() { var entity = new JobOpportunity { Title = this.Title, Location = this.Location, Category = this.Category, RequirementsToApply = this.RequirementsToApply, CompanyName = this.CompanyName, CompanyUrl = this.CompanyUrl, CompanyLogoUrl = this.CompanyLogoUrl, CompanyEmail = this.CompanyEmail }; return entity; }
public JobOpportunity ToEntity() { var entity = new JobOpportunity { Title = Title, LocationId = SelectedLocationId, Category = Category, Description = Description, CompanyName = CompanyName, CompanyUrl = CompanyUrl, CompanyLogoUrl = CompanyLogoUrl, CompanyEmail = CompanyEmail, PublishedDate = DateTime.Now }; return entity; }
public Models.JobOpportunity ToEntity() { var entity = new JobOpportunity { Title = this.Title, Location = this.Location, Category = this.Category, Description = this.Description, CompanyName = this.CompanyName, CompanyUrl = this.CompanyUrl, CompanyLogoUrl = this.CompanyLogoUrl, CompanyEmail = this.CompanyEmail, Created = this.Created, PublishedDate = this.PublishedDate }; return entity; }
public void CreateNewJobOpportunity(JobOpportunity jobOpportunity) { _jobOpportunityRepository.Add(jobOpportunity); _jobOpportunityRepository.SaveChanges(); }