示例#1
0
        // GET: plastico/Delete/5


        public ActionResult Details(int id)
        {
            PlasticoBLL oBLL    = new PlasticoBLL();
            plastico    tarjeta = oBLL.Retrieve(id);

            return(View(tarjeta));
        }
示例#2
0
        // GET: Tarjeta
        public ActionResult Index()
        {
            PlasticoBLL     oBLL     = new PlasticoBLL();
            List <plastico> tarjetas = oBLL.RetrieveAll();

            return(View(tarjetas));
        }
示例#3
0
        public ActionResult Delete(int id)
        {
            PlasticoBLL oBLL = new PlasticoBLL();

            oBLL.Delete(id);

            return(RedirectToAction("Index"));
        }
示例#4
0
        public ActionResult Edit(plastico tarjeta)
        {
            ActionResult Result;

            try {
                if (ModelState.IsValid)
                {
                    PlasticoBLL oBLL = new PlasticoBLL();
                    oBLL.Edit(tarjeta);
                    Result = RedirectToAction("Index");
                }
                else
                {
                    Result = View(tarjeta);
                }
                return(Result);
            } catch (Exception e) {
                return(View(tarjeta));
            }
        }