Beispiel #1
0
        public ActionResult DeleteKhuyenMai(string id)
        {
            KhuyenMaiModel spm = new KhuyenMaiModel();

            DeleteAnh(spm.FindById(id).AnhCT);
            spm.DeleteKhuyenMai(id);
            return(TimKhuyenMai(null, null, null, null));
        }
Beispiel #2
0
 public ActionResult MultibleDel(List <string> lstdel)
 {
     if (lstdel == null)
     {
         return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
     }
     foreach (var item in lstdel)
     {
         KhuyenMaiModel spm = new KhuyenMaiModel();
         DeleteAnh(spm.FindById(item).AnhCT);
         spm.DeleteKhuyenMai(item);
     }
     return(TimKhuyenMai(null, null, null, null));
 }