Beispiel #1
0
        // GET: Admin/LoaiSP/Edit/5
        public ActionResult Edit(int id)
        {
            var rs = LoaiBus.ChiTiet(id);
            List <CustomDropDownList> BiXoa = new List <CustomDropDownList>()
            {
                new CustomDropDownList {
                    Text = "Không Xóa", Value = 0
                },
                new CustomDropDownList {
                    Text = "Xóa", Value = 1
                }
            };

            ViewBag.BiXoa = new SelectList(BiXoa, "Value", "Text");
            return(View(rs));
        }
Beispiel #2
0
        // GET: Admin/LoaiSP/Delete/5
        public ActionResult Delete(int id)
        {
            var rs = LoaiBus.ChiTiet(id);

            return(View(rs));
        }
Beispiel #3
0
 //
 // GET: /Loai/Delete/5
 public ActionResult Delete(string id)
 {
     return(View(LoaiBus.ChiTiet(id)));
 }