Example #1
0
        public IActionResult EndOfDay()
        {
            GR.BusinessLogic.Inventory inventory = new GR.BusinessLogic.Inventory();
            inventory.EndTheDay();

            return(Ok());
        }
Example #2
0
        public IActionResult Get(string itemName)
        {
            GR.BusinessLogic.Inventory invenotry = new GR.BusinessLogic.Inventory();

            var item = invenotry.GetItem(itemName);

            if (item == null)
            {
                return(new NoContentResult());
            }
            return(new ObjectResult(item));
        }
Example #3
0
 public IEnumerable <Item> Trash()
 {
     GR.BusinessLogic.Inventory invenotry = new GR.BusinessLogic.Inventory();
     return(invenotry.GetTrashList().ToList());
 }