Example #1
0
 public ActionResult <SectionUpdateDTO> SectionUpdate(SectionUpdateDTO s)
 {
     try
     {
         return(Ok(SqlSectionsRepository.SectionUpdate(s.id, s.uc, s.semester, s.ht, s.hp, s.hl, s.name,
                                                       s.description, s.type, s.fk_school)));
     }
     catch (DatabaseException)
     {
         return(StatusCode(500));
     }
 }