public Rating(RatingVM ratingVm, CompanyUser company) { empName = ratingVm.empName; INumber = ratingVm.INumber; Start = ratingVm.Start; End = ratingVm.End; Fq = ratingVm.Fq; Aq = ratingVm.Aq; Pq = ratingVm.Pq; Cq = ratingVm.Cq; Desc = ratingVm.Desc; Company = company; }
public Post(PostVM postVm, CompanyUser company) { Title = postVm.Title; Description = postVm.Description; RequireSkills = postVm.RequireSkills; ContractMonths = postVm.ContractMonths; HourType = postVm.HourType; //Salary = postVm.Salary; Salary = postVm.Salary ?? default(int); //DeadLine = postVm.DeadLine; DeadLine = postVm.DeadLine ?? default(DateTime); Company = company; City = postVm.City; State = postVm.State; }
public Task <List <Applicant> > GetAllApplicantAsync(CompanyUser user) { return(_context.Applicants.Where(a => a.post.Company == user).ToListAsync()); }