public async Task <List <Comment> > AllAsync(string order, string searchFor, int?pageIndex, int?pageSize) { return((await Uow.Comments.AllAsync(order, searchFor, pageIndex, pageSize)).Select(e => CommentMapper.MapFromDAL(e)).ToList()); }
public async Task <List <DTO.Comment> > GetAllWithProductByShopAsync(int?shopId, string search, int?pageIndex, int?pageSize) { return((await Uow.Comments.GetAllWithProductByShopAsync(shopId, search, pageIndex, pageSize)).Select(e => CommentMapper.MapFromDAL(e)).ToList()); }
public async Task <DTO.Comment> GetCommentByIdAndShop(int id, int?shopId) { return(CommentMapper.MapFromDAL(await Uow.Comments.GetCommentByIdAndShop(id, shopId))); }
public async Task <DTO.Comment> GetCommentById(int id) { return(CommentMapper.MapFromDAL(await Uow.Comments.GetCommentById(id))); }
public override async Task <Comment> FindAsync(params object[] id) { return(CommentMapper.MapFromDAL(await Uow.Comments.FindAsync(id))); }
public override async Task <List <Comment> > AllAsync() { return((await Uow.Comments.AllAsync()).Select(e => CommentMapper.MapFromDAL(e)).ToList()); }