Example #1
0
        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));
        }
Example #2
0
    public int ThemMonAn(MonAnDTO monan, String strTag)
    {
        int Kq = 0;

        try
        {
            Kq = monanDAO.ThemMonAn(monan, strTag);
        }
        catch (SqlException ex)
        {
            throw ex;
        }
        return(Kq);
    }
Example #3
0
    public int ThemMonAn(MonAnDTO monan, String strTag)
    {
        MonAnDAO monanDAO = new MonAnDAO();

        return(monanDAO.ThemMonAn(monan, strTag));
    }