Esempio n. 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);
        }
Esempio n. 2
0
        public static DataTable GetAllKnittingCategory(int Event, int id, string code, string code1)
        {
            var dt = DlKnittingCategory.GetKnittingCategory(Event, id, code, code1);

            return(dt);
        }
Esempio n. 3
0
 public static string InsUpdDelKnittingCategory(char Event, KnittingCategory obj, out int id)
 {
     id = 0;
     return(DlKnittingCategory.InsUpdDelKnittingCategory(Event, obj, out id));
 }