Ejemplo n.º 1
0
        //
        // GET: /Formation/
        public ActionResult Details(string id)
        {
            var model     = formationSer.Find(id);
            var viewModel = new FormationView();

            viewModel.CopyFrom(model);
            return(View(viewModel));
        }
Ejemplo n.º 2
0
        public ActionResult EditFormation(string id)
        {
            var model = new FormationView();
            var m     = formationSer.FirstOrDefault(x => x.F_ID == id);

            model.CopyFrom(m);
            return(View(model));
        }