コード例 #1
0
ファイル: CommentService.cs プロジェクト: NikitaKums/TalTech
 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());
 }
コード例 #2
0
ファイル: CommentService.cs プロジェクト: NikitaKums/TalTech
 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());
 }
コード例 #3
0
ファイル: CommentService.cs プロジェクト: NikitaKums/TalTech
 public async Task <DTO.Comment> GetCommentByIdAndShop(int id, int?shopId)
 {
     return(CommentMapper.MapFromDAL(await Uow.Comments.GetCommentByIdAndShop(id, shopId)));
 }
コード例 #4
0
ファイル: CommentService.cs プロジェクト: NikitaKums/TalTech
 public async Task <DTO.Comment> GetCommentById(int id)
 {
     return(CommentMapper.MapFromDAL(await Uow.Comments.GetCommentById(id)));
 }
コード例 #5
0
ファイル: CommentService.cs プロジェクト: NikitaKums/TalTech
 public override async Task <Comment> FindAsync(params object[] id)
 {
     return(CommentMapper.MapFromDAL(await Uow.Comments.FindAsync(id)));
 }
コード例 #6
0
ファイル: CommentService.cs プロジェクト: NikitaKums/TalTech
 public override async Task <List <Comment> > AllAsync()
 {
     return((await Uow.Comments.AllAsync()).Select(e => CommentMapper.MapFromDAL(e)).ToList());
 }