コード例 #1
0
ファイル: Rating.cs プロジェクト: AhmedFay/Job-Posting
        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;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
ファイル: PostRep.cs プロジェクト: AhmedFay/Job-Posting
 public Task <List <Applicant> > GetAllApplicantAsync(CompanyUser user)
 {
     return(_context.Applicants.Where(a => a.post.Company == user).ToListAsync());
 }