Пример #1
0
        public JobPostings AddJobPosting(JobPostings newPosting)
        {
            _context.JobPostings.Add(newPosting);
            _context.SaveChanges();

            return(newPosting);
        }
Пример #2
0
        public Recruiter AddRecruiter(Recruiter newRecruiter)
        {
            _context.Recruiter.Add(newRecruiter);
            _context.SaveChanges();

            return(newRecruiter);
        }
        public Coordinator AddCoord(Coordinator coordinator)
        {
            if (coordinator != null)
            {
                _context.Coordinator.Add(coordinator);
                _context.SaveChanges();
            }

            return(coordinator);
        }
Пример #4
0
        public Notes updateNote(Notes note)
        {
            Notes updatedNote = _context.Notes.Where(n => n.NoteId == note.NoteId).FirstOrDefault();

            if (updatedNote != null)
            {
                updatedNote.AttendeeId = note.AttendeeId;
                updatedNote.CompanyId  = note.CompanyId;
                updatedNote.Date       = note.Date;
                updatedNote.EventId    = note.EventId;
                updatedNote.Note       = note.Note;
                updatedNote.RatingId   = note.RatingId;
                updatedNote.Recruiter  = note.Recruiter;

                _context.SaveChanges();
            }

            return(note);
        }
Пример #5
0
 public Map AddMap(Map map)
 {
     _context.Map.Add(map);
     _context.SaveChanges();
     return(_context.Map.Where(m => m.EventId == map.EventId).FirstOrDefault());
 }