public ActionResult Create(Pet pet) { try { var proces = new PetService(); proces.CrearNuevaMascota(pet); return(RedirectToAction("Index")); } catch (Exception ex) { return(View()); } }
public ActionResult Create(Pet pet) { try { var proces = new PetService(); proces.CrearNuevaMascota(pet); return(RedirectToAction("Index")); } catch (Exception ex) { return(View()); } }