Beispiel #1
0
 public ActionResult Create(BreedBLL breed)
 {
     try
     {
         // TODO: Add insert logic here
         using (BusinessLogicLayer.ContextBLL ctx = new BusinessLogicLayer.ContextBLL())
         {
             ctx.BreedCreate(breed.BreedName);
         }
         return(RedirectToAction("Index"));
     }
     catch (Exception ex)
     {
         Logger.Logger.Log(ex);
         return(View("Error"));
     }
 }