Ejemplo n.º 1
0
 public ActionResult AddDishType(string dishTypeName)
 {
     try
     {
         var dishTypeDto = new DishTypeDto()
         {
             Name = dishTypeName, Description = dishTypeName
         };
         dishService.CreateNewDishType(dishTypeDto);
         return(RedirectToAction("AddDish"));
     }
     catch (Exception exception)
     {
         return(new HttpStatusCodeResult(500));
     }
 }