// GET public List <DataAccessLayer.Models.AttendeeModel> Get() { var items = new List <DataAccessLayer.Models.AttendeeModel>(); try { items = _repository.All().ToList(); } catch (Exception ex) { Console.WriteLine(ex.Message); } return(items); }