public void InsertListHoaDon(ListHoaDon listHoaDon) { if (listHoaDon == null || listHoaDon.listHoaDon == null || listHoaDon.listHoaDon.Count == 0) { return; } var listHoaDonModel = new List <ChiTietHoaDonModel>(); var quanLyHoaDonModel = new QuanLyHoaDonModel() { NgayThucHien = listHoaDon.NgayThucHien, TongTien = listHoaDon.TongTien }; BaseBLL <QuanLyHoaDon, QuanLyHoaDonModel> .Insert(quanLyHoaDonModel); foreach (var hoadon in listHoaDon.listHoaDon) { var hoaDonModel = BaseBLL <ChiTietHoaDonModel, HoaDonViewModel> .ConvertFromModel(hoadon); hoaDonModel.QuanLyHoaDonId = quanLyHoaDonModel.Id; listHoaDonModel.Add(hoaDonModel); } BaseBLL <ChiTietHoaDon, ChiTietHoaDonModel> .InsertList(listHoaDonModel); }
public void InsertChiTien(ChiTienModel ChiTien) { BaseBLL <ChiTien, ChiTienModel> .Insert(ChiTien); }
public void InsertQuanLySanPham(QuanLySanPhamModel QuanLySanPham) { BaseBLL <QuanLySanPham, QuanLySanPhamModel> .Insert(QuanLySanPham); }
public void InsertChiTietHoaDon(ChiTietHoaDonModel ChiTietHoaDon) { BaseBLL <ChiTietHoaDon, ChiTietHoaDonModel> .Insert(ChiTietHoaDon); }
public void InsertRole(RoleModel roleModel) { BaseBLL <Role, RoleModel> .Insert(roleModel); }
public void Insert(QuanLyHoaDonModel quanLyHoaDonModel) { BaseBLL <QuanLyHoaDon, QuanLyHoaDonModel> .Insert(quanLyHoaDonModel); }
public void InsertSanPham(SanPhamModel SanPham) { BaseBLL <SanPham, SanPhamModel> .Insert(SanPham); }
public void InsertUser(UserModel userModel) { BaseBLL <User, UserModel> .Insert(userModel); }