public int Add(BasLog model) { if (model == null) { return 0; } return dal.Add(model); }
public int Add(BasLog model) { try { return DataBase.ExecuteNonQuery(""); } catch { return -1; } }