public void Remove(Guid id)
        {
            var entity = _context.OrderItem.Find(OrderItemQueries.GetOrderItemById(id));

            _context.OrderItem.Remove(entity);
            _context.SaveChanges();
        }
 public async Task <ActionResult> OrderItemReport([FromQuery] PagingParams pagingParams, [FromQuery] DateTime fromDate, [FromQuery] DateTime toDate)
 {
     return(await OrderItemQueries.OrderItemsReport(pagingParams, fromDate, toDate));
 }
 public async Task <ActionResult> Get(Guid id)
 {
     return(await OrderItemQueries.Get(id));
 }
 public OrderItemController(IOrderItemService iOrderItemService, OrderItemQueries orderItemQueries, IResponseMessages responsMessages)
 {
     IOrderItemService = iOrderItemService;
     OrderItemQueries  = orderItemQueries;
     ResponsMessages   = responsMessages as ResponseMessages;
 }