public SellingOrderDto DeleteSellingOrder(int id)
        {
            var existed = this.SellingOrderExists(id);

            if (!existed)
            {
                return(null);
            }
            var order = _orderRepo.GetById(id);
            int res   = _orderRepo.Delete(order);

            if (res <= 0)
            {
                return(null);
            }
            return(_mapper.Map <SellingOrderDto>(order));
        }
Exemplo n.º 2
0
 public void DeleteOrder(SellingOrderDto orderDto)
 {
     sellingOrderRepository.Delete(orderDto.MappingOrder());
 }