public void Execute() { var ds = formBookBal.GetListFormBook(); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { var book_id = ds.Tables[0].Rows[i][0].ToString(); if (formBookBal.GetIDForm(ds.Tables[0].Rows[i][1].ToString()).Obj != null) { var supplier_id = int.Parse(formBookBal.GetIDForm(ds.Tables[0].Rows[i][1].ToString()).Obj .ToString()); formBookBal.InsertFormBook(book_id, supplier_id); Console.WriteLine(book_id); } } }
public async Task <Response> GetListFormBook() { return(await formBookBal.GetListFormBook()); }