|
|
@@ -40,7 +40,6 @@ namespace CD67.FicheCollege.MVC.Controllers
|
|
|
{
|
|
|
return HttpNotFound();
|
|
|
}
|
|
|
- actionEdu.hydrate();
|
|
|
ActionEduViewModel model = new ActionEduViewModel(actionEdu, db);
|
|
|
|
|
|
return View(model);
|
|
|
@@ -58,7 +57,6 @@ namespace CD67.FicheCollege.MVC.Controllers
|
|
|
actionEdu.AnneeId = annee_id.Value;
|
|
|
AnneeFactory fact = new AnneeFactory(db);
|
|
|
actionEdu.Annee = fact.getById(annee_id);
|
|
|
- actionEdu.hydrate();
|
|
|
|
|
|
actionEdu.TokenId = Guid.NewGuid();
|
|
|
|
|
|
@@ -79,7 +77,6 @@ namespace CD67.FicheCollege.MVC.Controllers
|
|
|
fact.add(ref actionEdu);
|
|
|
return RedirectToAction("Index", new { annee_id = actionEdu.AnneeId });
|
|
|
}
|
|
|
- actionEdu.hydrate();
|
|
|
ActionEduViewModel model = new ActionEduViewModel(actionEdu, db, ModeAcces.Creation);
|
|
|
return View(model);
|
|
|
}
|
|
|
@@ -97,7 +94,6 @@ namespace CD67.FicheCollege.MVC.Controllers
|
|
|
{
|
|
|
return HttpNotFound();
|
|
|
}
|
|
|
- action.hydrate();
|
|
|
ActionEduViewModel model = new ActionEduViewModel(action, db, ModeAcces.Modification);
|
|
|
return View(model);
|
|
|
}
|
|
|
@@ -120,7 +116,6 @@ namespace CD67.FicheCollege.MVC.Controllers
|
|
|
db.ActionsEdu.Attach(actionEdu);
|
|
|
db.Entry(actionEdu).Reference(i => i.Annee).Load();
|
|
|
}
|
|
|
- actionEdu.hydrate();
|
|
|
ActionEduViewModel model = new ActionEduViewModel(actionEdu, db, ModeAcces.Modification);
|
|
|
return View(model);
|
|
|
}
|
|
|
@@ -138,7 +133,6 @@ namespace CD67.FicheCollege.MVC.Controllers
|
|
|
{
|
|
|
return HttpNotFound();
|
|
|
}
|
|
|
- actionEdu.hydrate();
|
|
|
ActionEduViewModel model = new ActionEduViewModel(actionEdu, db);
|
|
|
return View(model);
|
|
|
}
|