public static bool ThemMonAn(MonAn monAn, List <string> listMaNguyenLieu, List <string> listSoLuongNL) { string listNguyenLieu = String.Join("|", listMaNguyenLieu); string listSoLuong = String.Join("|", listSoLuongNL); return(MonAnDAO.ThemMonAn(monAn, listNguyenLieu, listSoLuong)); }
public int ThemMonAn(MonAnDTO monan, String strTag) { int Kq = 0; try { Kq = monanDAO.ThemMonAn(monan, strTag); } catch (SqlException ex) { throw ex; } return(Kq); }
public int ThemMonAn(MonAnDTO monan, String strTag) { MonAnDAO monanDAO = new MonAnDAO(); return(monanDAO.ThemMonAn(monan, strTag)); }