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)); }
// GET: ScoringConfigFrentes/Create public ActionResult Create() { var scoringConfigFrentesViewModel = new ScoringConfigFrentesViewModel(); return(PartialView("Create", scoringConfigFrentesViewModel)); }