Ejemplo n.º 1
0
 public ActionResult Delete(string id)
 {
     using (DIC_TINH dic_tinh = new DIC_TINH())
     {
         dic_tinh.MaTinh = id;
         var result = dic_tinh.Delete();
         if (result == data.enums.SqlResultType.OK)
         {
             this.ShowNotification(data.enums.MessageObjectType.Success, "Xóa tỉnh thành", "Đã xóa thành công ");
             return(RedirectToAction("Index"));
         }
         else
         {
             this.ShowNotification(result, "Xóa tỉnh thành", "Không xóa được bản ghi này.");
             return(RedirectToAction("Index"));
         }
     }
 }