public ActionResult delete_Interacion(int id_iteracion) { Interacions iteracion = db.oInteracion.Find(id_iteracion); db.oInteracion.Remove(iteracion); db.SaveChanges(); return(null); //return Iteracion; }
public ActionResult register_Interacion(int id_user, string name, string url, string action, string verb, string pa_va) { Interacions oInteracion = new Interacions(); oInteracion.id_user = id_user; oInteracion.name = name; oInteracion.url = url; oInteracion.action = action; oInteracion.verb = verb; oInteracion.parametro = pa_va; if (ModelState.IsValid) { db.oInteracion.Add(oInteracion); db.SaveChanges(); } return(get_Interacion(id_user)); }