Esempio n. 1
0
        public PostModified(PostVM post, Post p)
        {
            //Id = p.Id;
            OldPost = p;

            Title          = post.Title;
            Description    = post.Description;
            RequireSkills  = post.RequireSkills;
            ContractMonths = post.ContractMonths;
            HourType       = post.HourType;
            //Salary = post.Salary;
            Salary = post.Salary ?? default(int);

            //DeadLine = post.DeadLine;
            DeadLine = post.DeadLine ?? default(DateTime);
        }
Esempio n. 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;
        }