public static void SaveInvoice(int KhId, int total, double saleoff, List <CTHDDTO> listCTHD, GiaoHangDTO GH) { CTHDBUS cthd = new CTHDBUS(); int Mahd = 0; DateTime DateCreate = DateTime.Now; HoaDonBUS hd = new HoaDonBUS(); HoaDonDTO entity = new HoaDonDTO(Mahd, KhId, DateCreate, saleoff, total); CTHDBUS cTHDBUS = new CTHDBUS(); GiaoHangBUS giaoHangBUS = new GiaoHangBUS(); hd.Add(entity); giaoHangBUS.Add(GH); cTHDBUS.Add(listCTHD); }
public void Add(GiaoHangDTO entity) { gh.Add(entity); }