Exemple #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            Scoring_Configuracion scoring_Configuracion = db.Scoring_Configuracion.Find(id);

            db.Scoring_Configuracion.Remove(scoring_Configuracion);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemple #2
0
        // GET: ScoringConfigMedidas/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Scoring_Configuracion scoring_Configuracion = db.Scoring_Configuracion.Find(id);

            if (scoring_Configuracion == null)
            {
                return(HttpNotFound());
            }
            return(View(scoring_Configuracion));
        }
Exemple #3
0
        // GET: ScoringConfigMedidas/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Scoring_Configuracion scoring_Configuracion = db.Scoring_Configuracion.Find(id);

            if (scoring_Configuracion == null)
            {
                return(HttpNotFound());
            }
            var scoringConfigMedidasViewModel = ModelMappingProfile.Mapper.Map <Scoring_Configuracion, ScoringConfigMedidasViewModel>(scoring_Configuracion);

            return(PartialView("Edit", scoringConfigMedidasViewModel));
        }