Esempio n. 1
0
 public IActionResult Get()
 {
     try
     {
         var HallList = _hallService.Get();
         if (HallList != null)
         {
             return(Ok(HallList));
         }
         else
         {
             return(BadRequest("There are no Halls."));
         }
     }
     catch (Exception ex)
     {
         ModelState.AddModelError(string.Empty, ex.Message);
         return(BadRequest(ModelState));
     }
 }