예제 #1
0
        public static List <KnittingCategory> GetKnittingCategory(int Event, int id, string code, string code1)
        {
            var lst = new List <KnittingCategory>();
            var dt  = DlKnittingCategory.GetKnittingCategory(Event, id, code, code1);

            if (dt.Rows.Count > 0)
            {
                foreach (DataRow dr in dt.Rows)
                {
                    var obj = new KnittingCategory(Convert.ToInt32(dr["Id"]), dr["Category"].ToString());
                    lst.Add(obj);
                }
            }
            return(lst);
        }
예제 #2
0
        public static DataTable GetAllKnittingCategory(int Event, int id, string code, string code1)
        {
            var dt = DlKnittingCategory.GetKnittingCategory(Event, id, code, code1);

            return(dt);
        }