Exemplo n.º 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            MdmDQDataSource mdmDQDataSource = db.MdmDQDataSources.Find(id);

            db.MdmDQDataSources.Remove(mdmDQDataSource);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
 public ActionResult Edit(MdmDQDataSource mdmDQDataSource)
 {
     if (ModelState.IsValid)
     {
         db.Entry(mdmDQDataSource).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.DS_TYPE = new SelectList(db.MdmDQDsTypes, "TYPE_ID", "TYPE_NAME", mdmDQDataSource.DS_TYPE);
     return(View(mdmDQDataSource));
 }
Exemplo n.º 3
0
        public ActionResult Create(MdmDQDataSource mdmDQDataSource)
        {
            if (ModelState.IsValid)
            {
                db.MdmDQDataSources.Add(mdmDQDataSource);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            ViewBag.DS_TYPE = new SelectList(db.MdmDQDsTypes, "TYPE_ID", "TYPE_NAME", mdmDQDataSource.DS_TYPE);
            return(View(mdmDQDataSource));
        }
Exemplo n.º 4
0
        // GET: DataSources/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            MdmDQDataSource mdmDQDataSource = db.MdmDQDataSources.Find(id);

            if (mdmDQDataSource == null)
            {
                return(HttpNotFound());
            }
            return(View(mdmDQDataSource));
        }
Exemplo n.º 5
0
        // GET: DataSources/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            MdmDQDataSource mdmDQDataSource = db.MdmDQDataSources.Find(id);

            if (mdmDQDataSource == null)
            {
                return(HttpNotFound());
            }
            ViewBag.DS_TYPE = new SelectList(db.MdmDQDsTypes, "TYPE_ID", "TYPE_NAME", mdmDQDataSource.DS_TYPE);
            return(View(mdmDQDataSource));
        }