Example #1
0
 public ActionResult <IEnumerable <Section> > GetAllSections()
 {
     try
     {
         return(Ok(SqlSectionsRepository.GetAllSections()));
     }
     catch (DatabaseException)
     {
         return(StatusCode(500));
     }
 }