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