示例#1
0
        public async Task <IActionResult> Post([FromBody] CreateTradeRequest request)
        {
            ProductTradeService productTrade = new ProductTradeService(_context);

            Guid id = await productTrade.Create(new ProductTrade(request.Date, request.ProductId, request.Details, request.SchemaId, request.TradeId, request.ProductId));


            return(Created(string.Empty, id));
        }
示例#2
0
        public async Task <IEnumerable <string> > GetAsync()
        {
            //
            ProductTradeService productTrade = new ProductTradeService(_context);

            await productTrade.Create(new ProductTrade(DateTime.Now, Guid.NewGuid(), "test", Guid.NewGuid(), Guid.NewGuid(), Guid.NewGuid()));

            return(new string[] { "value1", "value2" });
        }