using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using MESClassLibrary.BLL.Log; using MESClassLibrary.DAL.BasicInfo; using MESClassLibrary.Model; namespace MESClassLibrary.BLL.BasicInfo { public class BadInjectionBLL { BadInjectionDAL db=new BadInjectionDAL(); public bool Add_Info(BadInjectionModel md) { try { return db.AddInfo(md); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return false; } } public DataTable SearchByCode(string code) { try { return db.SearchByCode(code); } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } } }