Exemple #1
0
        public async Task <ActionResult <PuOrderDto> > PuOrderById(int id)
        {
            MessageModel <PuOrderDto> res = new MessageModel <PuOrderDto>();
            PuOrder pusupplier            = await _puorderservices.GetEntityByIdAsync(id);

            res.Data = _mapper.Map <PuOrderDto>(pusupplier);
            return(Ok(res));
        }
        internal PuOrder CreatePlOrder()
        {
            Sku     sku = CreateSku();
            PuOrder x   = new PuOrder();

            x.Id      = 1;
            x.Code    = "codigo";
            x.State   = PuOrder.StateType.planned;
            x.RcpDate = new DateTime(1963, 1, 19);
            x.OrdDate = new DateTime(1963, 1, 18);
            x.Sku     = sku;
            x.Qty     = 6;
            return(x);
        }