public async Task <DTO.ProductInOrder> GetAsyncByShopAndIdDTO(int id, int?shopId) { return(ProductInOrderMapper.MapFromDAL(await Uow.ProductsInOrder.GetAsyncByShopAndIdDTO(id, shopId))); }
public async Task <List <DTO.ProductInOrder> > AllAsyncByShopDTO(int?shopId) { return((await Uow.ProductsInOrder.AllAsyncByShopDTO(shopId)).Select(e => ProductInOrderMapper.MapFromDAL(e)) .ToList()); }
public async Task <List <DTO.DomainLikeDTO.ProductInOrder> > AllAsyncByOrderId(int orderId) { return((await Uow.ProductsInOrder.AllAsyncByOrderId(orderId)).Select(e => ProductInOrderMapper.MapFromDAL(e)).ToList()); }
public override async Task <ProductInOrder> FindAsync(params object[] id) { return(ProductInOrderMapper.MapFromDAL(await Uow.ProductsInOrder.FindAsync(id))); }
public override async Task <List <ProductInOrder> > AllAsync() { return((await Uow.ProductsInOrder.AllAsync()).Select(e => ProductInOrderMapper.MapFromDAL(e)).ToList()); }
/*public override async Task<IEnumerable<ProductInOrder>> AllAsync() * { * return await UOW.ProductsInOrder.AllAsync(); * } * * public override async Task<ProductInOrder> FindAsync(params object[] id) * { * return await UOW.ProductsInOrder.FindAsync(id); * } * * public async Task<IEnumerable<ProductInOrder>> AllAsyncByShop(int? shopId) * { * return await UOW.ProductsInOrder.AllAsyncByShop(shopId); * } * * public async Task<IEnumerable<ProductInOrderDTO>> AllAsyncByShopDTO(int? shopId) * { * return await UOW.ProductsInOrder.AllAsyncByShopDTO(shopId); * } * * public async Task<ProductInOrderDTO> GetAsyncByShopAndIdDTO(int id, int? shopId) * { * return await UOW.ProductsInOrder.GetAsyncByShopAndIdDTO(id, shopId); * }*/ public async Task <List <OrderReceived> > FindOrdersReceivedByOrderId(int orderId, int?shopId) { return((await Uow.ProductsInOrder.FindOrdersReceivedByOrderId(orderId, shopId)) .Select(e => ProductInOrderMapper.MapFromDAL(e)).ToList()); }