| 123456789101112131415161718192021222324252627282930 |
- using CD67.FicheCollege.Entity;
- using CD67.FicheCollege.Factory;
- using CD67.FicheCollege.MVC.Models;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Web;
- using System.Web.Mvc;
- namespace CD67.FicheCollege.MVC.Controllers
- {
- public class ActionsEduCollegeController : Controller
- {
- private Entities db = new Entities();
- // GET: Actions
- public ActionResult Index(int? annee_id)
- {
- if (annee_id == null)
- {
- return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
- }
- AnneeFactory fact = new AnneeFactory(db);
- Annee annee = fact.getById(annee_id);
- AnneeViewModel model = new AnneeViewModel(annee, ModeAcces.Lecture);
- return View(model);
- }
- }
- }
|