Example #1
0
        public ActionResult DeleteConfirmed(string id)
        {
            VMetricFactsAndStat vMetricFactsAndStat = db.VMetricFactsAndStats.Find(id);

            db.VMetricFactsAndStats.Remove(vMetricFactsAndStat);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Example #2
0
 public ActionResult Edit([Bind(Include = "CountryCode,IndicatorCode,Topic,IndicatorName,UnitOfMeasure,OtherNotes,AggregationMethod,LimitationsAndExceptions,Year,Value,p5,p10,p25,p50,p75,p90,p95,Average,Min,Max,Size,ranking,CollectionMethodByYear")] VMetricFactsAndStat vMetricFactsAndStat)
 {
     if (ModelState.IsValid)
     {
         db.Entry(vMetricFactsAndStat).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(vMetricFactsAndStat));
 }
Example #3
0
        // GET: VMetricFactsAndStats/Delete/5
        public ActionResult Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            VMetricFactsAndStat vMetricFactsAndStat = db.VMetricFactsAndStats.Find(id);

            if (vMetricFactsAndStat == null)
            {
                return(HttpNotFound());
            }
            return(View(vMetricFactsAndStat));
        }