public ActionResult Index(MateriasView materia) { matter mat = new matter() { code = materia.code, date_register = DateTime.Now, name = materia.name, }; db.save(mat); return(RedirectToAction("Index")); }
public ActionResult Edit(int id) { matter materia = db.getMateria(id); MateriasView vistaMaterias = new MateriasView() { id = materia.id, name = materia.name, code = materia.code }; vistaMaterias.materias = db.getMaterias(); return(View(vistaMaterias)); }
public void Add(matter value) { size++; Node tmp = new Node(); tmp.Data = value; tmp.Next = tmp.Prev = null; if (First == null) { First = tmp; Last = tmp; } else { Last.Next = tmp; tmp.Prev = Last; Last = tmp; } }
public virtual void insertAattribute(LinkedList list, matter X, string inputAtt) { }