コード例 #1
0
ファイル: NguyenLieuBUS.cs プロジェクト: danhthanh418/Karaoke
        public static int DemNguyenLieu(string tenNguyenLieu, string maNhaCungCap, bool isXemToiThieu, List <string> exceptList = null)
        {
            DataTable table = NguyenLieuDAO.DemNguyenLieu(tenNguyenLieu, maNhaCungCap, isXemToiThieu);

            if (exceptList != null)
            {
                foreach (string item in exceptList)
                {
                    if (item != null)
                    {
                        try
                        {
                            table = table.Select("manl <> '" + item + "'").CopyToDataTable();
                        }
                        catch (Exception ex)
                        {
                            Utility.Log(ex);
                            table.Clear();
                        }
                    }
                }
            }
            return(table.Rows.Count);
        }