Example #1
0
        public void UpdateSeekerWorkState(int seekerId, Enums.SeekerWorkStates newState)
        {
            using (var db = new JobyJobsDB2())
            {
                seeker dbSeeker;
                if (!db.seekers.GetAny(item => item.seeker_id == seekerId, out dbSeeker))
                {
                    throw new JobyJobsException("The Requested application was not found");
                }
                dbSeeker.work_state = (int)newState;
                //dbSeeker.last_updated = DateTime.Now;
                db.Entry(dbSeeker).State = EntityState.Modified;

                db.SaveChanges();
            }
        }
Example #2
0
 public Seeker(int seekerId, string firstName, string lastName, string phoneNumber, DateTime registerDate, Enums.Gender gender, string idNumber, DateTime birthDate, Enums.SeekerWorkStates workState, Enums.AppLanguages language, DateTime lastUpdated, bool active, string identityUserID, string email, string passwordHash, string aboutMe, string cvFile, DateTime cvUploadDate, int salaryMin, string[] locationCities, int distance)
 {
     SeekerId        = seekerId;
     FirstName       = firstName;
     LastName        = lastName;
     PhoneNumber     = phoneNumber;
     RegisterDate    = registerDate;
     Gender          = gender;
     IDNumber        = idNumber;
     BirthDate       = birthDate;
     WorkState       = workState;
     Language        = language;
     LastUpdated     = lastUpdated;
     Active          = active;
     Identity_UserID = identityUserID;
     Email           = email;
     PasswordHash    = passwordHash;
     AboutMe         = aboutMe;
     CV_File         = cvFile;
     CV_UploadDate   = cvUploadDate;
     SalaryMin       = salaryMin;
     LocationCities  = locationCities;
     Distance        = distance;
 }