Example #1
0
        public IActionResult GetById(int id)
        {
            var people = _context.GetPeople();
            var person = people.FirstOrDefault(pers => pers.Id == id);
            var result = person.Schedule;

            return(new ObjectResult(result));
        }
 public List <Employee> GetAll()
 {
     return(_context.GetPeople());
 }