public IActionResult Post([FromBody] SportsHall sportsHall)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            repository.SaveSportsHall(sportsHall);
            return(CreatedAtAction(nameof(Get),
                                   new { id = sportsHall.SportsHallID }, sportsHall));
        }
 public IActionResult EditSportsHall(SportsHall sportsHall)
 {
     if (ModelState.IsValid)
     {
         repository.SaveSportsHall(sportsHall);
         return(RedirectToAction("SportsHall"));
     }
     else
     {
         // there is something wrong with the data values
         return(View(sportsHall));
     }
 }