Пример #1
0
 public ActionResult Create(FormCollection collection)
 {
     try
     {
         CategoriaBE entity = new CategoriaBE();
         entity.Nombre      = collection["Nombre"];
         entity.Descripcion = collection["Descripcion"];
         // TODO: Add insert logic here
         categoriaBL.Insert(entity);
         return(RedirectToAction("Index"));
     }
     catch (Exception ex)
     {
         ViewBag.Error = ex.Message;
         return(View());
     }
 }