public ActionResult <IEnumerable <People> > GetAllPeople() { IEnumerable <Person> result = null; try { result = _people.GetAllPeople(); if (result != null) { return(Ok(result)); } else { return(NoContent()); } } catch (Exception e) { Console.WriteLine(e); return(BadRequest()); } }