Exemple #1
0
 public IActionResult Create(Bird bird)
 {
     try
     {
         var succes = _birdRepository.CreateBird(bird);
         if (succes)
         {
             return(RedirectToAction("Index"));
         }
         else
         {
             return(NotFound());
         }
     }
     catch (Exception)
     {
         return(NotFound());
     }
 }