HomeController.cs 524 B

123456789101112131415161718192021
  1. using CD67.FicheCollege.Entity;
  2. using CD67.FicheCollege.Factory;
  3. using System;
  4. using System.Linq;
  5. using System.Net;
  6. using System.Web.Mvc;
  7. namespace CD67.FicheCollege.MVC.Controllers
  8. {
  9. public class HomeController : Controller
  10. {
  11. private Entities db = new Entities();
  12. // GET: Home
  13. public ActionResult Index()
  14. {
  15. AnneeFactory fact = new AnneeFactory(db);
  16. return RedirectToAction("Details", "Annees", new { id = fact.get_current_year_id() });
  17. }
  18. }
  19. }