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

            return(Ok());
        }
Exemple #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));
        }
Exemple #3
0
 public IEnumerable <Item> Trash()
 {
     GR.BusinessLogic.Inventory invenotry = new GR.BusinessLogic.Inventory();
     return(invenotry.GetTrashList().ToList());
 }