Beispiel #1
0
        public ActionResult Delete(long id)
        {
            try
            {
                // TODO: Add delete logic here

                AdvertiseDao bdDao = new AdvertiseDao();

                bdDao.Delete(id);
                // SetAlert("Xóa thành công", "success");
                return(RedirectToAction("Index"));
            }
            catch
            {
                // SetAlert("Không xóa được", "danger");
                return(View());
            }
        }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="emp"></param>
 /// <returns></returns>
 public int Delete(int id)
 {
     return(dao.Delete(id));
 }