Ejemplo n.º 1
0
        // GET: EventDataDuplicates/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var estatus = new Dictionary <string, string>();

            estatus.Add("1", "Duplicate ");
            estatus.Add("2", "Customer Does not exist");

            ViewData["EStatus"] = estatus;
            tbl_ISW_Data_duplicate tbl_ISW_Data_duplicate = db.tbl_ISW_Data_duplicate.Find(id);

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