// GET: Resultados public ActionResult Index() { List <property> ListResultados = new List <property>(); model = new ModelResultado(); ListResultados = model.findAll(); return(View(ListResultados)); }
public JsonResult Create(property _property) { if (ModelState.IsValid) { model = new ModelResultado(); model.save(_property); return(Json("add successufully", JsonRequestBehavior.AllowGet)); } return(Json("Error", JsonRequestBehavior.AllowGet)); }
public ActionResult Delete(int id) { model = new ModelResultado(); model.delete(id); return(RedirectToAction("Index")); }