예제 #1
0
        public void AddCustom()
        {
            var service = new ProductManagementService();

            service.AddCustom("JW 0417", new Models.BeerEntity("Glottal Stop", "JW 0417")
            {
                ABV         = 6.0,
                Name        = "John's Wort Ale",
                BrewYear    = 2017,
                Availablity = "Extremely limited release.",
                Description = "A highly custom beer light brown in color. Made with a helping of John's Wort, this beer is pleasant to the senses and goes down smooth.",
                Type        = "Ale",
                Glass       = "Pilsner",
                LabelUrl    = "http://i.imgur.com/8RVZWQ3.png"
            });
        }
예제 #2
0
 // POST api/beer?upc=X
 public void Post([FromBody] BeerEntity value, String upc)
 {
     beerService.AddCustom(upc, value);
 }