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 DeleteSanPham(Guid id) { BaseBLL <SanPham, SanPhamModel> .Delete(id); }
public void InsertChiTien(ChiTienModel ChiTien) { BaseBLL <ChiTien, ChiTienModel> .Insert(ChiTien); }
public List <ChiTienModel> GetAll() { return(BaseBLL <ChiTien, ChiTienModel> .GetAll()); }
public void UpdateQuanLySanPham(QuanLySanPhamModel QuanLySanPhamModel) { BaseBLL <QuanLySanPham, QuanLySanPhamModel> .Update(QuanLySanPhamModel); }
public QuanLySanPhamModel GetById(Guid id) { return(BaseBLL <QuanLySanPham, QuanLySanPhamModel> .GetById(id)); }
public void DeleteQuanLySanPham(Guid id) { BaseBLL <QuanLySanPham, QuanLySanPhamModel> .Delete(id); }
public void Delete(Guid id) { BaseBLL <QuanLyHoaDon, QuanLyHoaDonModel> .Delete(id); }
public void Update(QuanLyHoaDonModel quanLyHoaDonModel) { BaseBLL <QuanLyHoaDon, QuanLyHoaDonModel> .Update(quanLyHoaDonModel); }
public void UpdateSanPham(SanPhamModel SanPhamModel) { BaseBLL <SanPham, SanPhamModel> .Update(SanPhamModel); }
public void Insert(QuanLyHoaDonModel quanLyHoaDonModel) { BaseBLL <QuanLyHoaDon, QuanLyHoaDonModel> .Insert(quanLyHoaDonModel); }
public void InsertSanPham(SanPhamModel SanPham) { BaseBLL <SanPham, SanPhamModel> .Insert(SanPham); }
public SanPhamModel GetById(Guid id) { return(BaseBLL <SanPham, SanPhamModel> .GetById(id)); }
public List <SanPhamModel> GetAll() { return(BaseBLL <SanPham, SanPhamModel> .GetAll()); }
public void DeleteChiTietHoaDon(Guid id) { BaseBLL <ChiTietHoaDon, ChiTietHoaDonModel> .Delete(id); }
public QuanLyHoaDonModel GetById(Guid id) { return(BaseBLL <QuanLyHoaDon, QuanLyHoaDonModel> .GetById(id)); }
public void InsertChiTietHoaDon(ChiTietHoaDonModel ChiTietHoaDon) { BaseBLL <ChiTietHoaDon, ChiTietHoaDonModel> .Insert(ChiTietHoaDon); }
public List <QuanLyHoaDonModel> GetAll() { return(BaseBLL <QuanLyHoaDon, QuanLyHoaDonModel> .GetAll()); }
public void UpdateChiTietHoaDon(ChiTietHoaDonModel ChiTietHoaDonModel) { BaseBLL <ChiTietHoaDon, ChiTietHoaDonModel> .Update(ChiTietHoaDonModel); }
public void DeleteRole(Guid id) { BaseBLL <Role, RoleModel> .Delete(id); }
public List <QuanLySanPhamModel> GetAll() { return(BaseBLL <QuanLySanPham, QuanLySanPhamModel> .GetAll()); }
public List <RoleModel> GetAll() { return(BaseBLL <Role, RoleModel> .GetAll()); }
public void InsertQuanLySanPham(QuanLySanPhamModel QuanLySanPham) { BaseBLL <QuanLySanPham, QuanLySanPhamModel> .Insert(QuanLySanPham); }
public RoleModel GetById(Guid id) { return(BaseBLL <Role, RoleModel> .GetById(id)); }
public void DeleteChiTien(Guid id) { BaseBLL <ChiTien, ChiTienModel> .Delete(id); }
public void InsertRole(RoleModel roleModel) { BaseBLL <Role, RoleModel> .Insert(roleModel); }
public ChiTienModel GetById(Guid id) { return(BaseBLL <ChiTien, ChiTienModel> .GetById(id)); }
public void UpdateRole(RoleModel roleModel) { BaseBLL <Role, RoleModel> .Update(roleModel); }
public void UpdateChiTien(ChiTienModel ChiTienModel) { BaseBLL <ChiTien, ChiTienModel> .Update(ChiTienModel); }
public List <UserModel> GetAll() { return(BaseBLL <User, UserModel> .GetAll()); }