public Models.MateriaModel GetModelEmpty() { var model = new Models.MateriaModel(); model.Planes = this.Planes(); return(model); }
public Models.MateriaModel GetModel(int id) { var mat = this.materiaLogic.GetOne(id); var model = new Models.MateriaModel(mat); model.Planes = this.PlanesEdit(mat.IDPlan); return(model); }