public List <SanPhamModel> all(int pageIndex, int pageSize, out long total)
 {
     return(isp.GetSanPhams(pageIndex, pageSize, out total));
 }
Exemple #2
0
 public IEnumerable <SanPhamDTO> GetSanPhams()
 {
     return(iMapper.Map <IEnumerable <SanPham>, IEnumerable <SanPhamDTO> >(sanphamRepository.GetSanPhams()));
 }