示例#1
0
        public ActionResult Edit(ScoringConfigFrentesViewModel scoringConfigFrentesViewModel)
        {
            if (ModelState.IsValid)
            {
                scoringConfigFrentesViewModel.Ambito = scoringConfigFrentesViewModel.Metrica;
                scoringConfigFrentesViewModel.Tipo   = "Scoring";

                var scoring_Configuracion = ModelMappingProfile.Mapper.Map <ScoringConfigFrentesViewModel, Scoring_Configuracion>(scoringConfigFrentesViewModel);
                db.Entry(scoring_Configuracion).State = EntityState.Modified;
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }
            return(View(scoringConfigFrentesViewModel));
        }
示例#2
0
        // GET: ScoringConfigFrentes/Create
        public ActionResult Create()
        {
            var scoringConfigFrentesViewModel = new ScoringConfigFrentesViewModel();

            return(PartialView("Create", scoringConfigFrentesViewModel));
        }