public IActionResult EndOfDay() { GR.BusinessLogic.Inventory inventory = new GR.BusinessLogic.Inventory(); inventory.EndTheDay(); return(Ok()); }
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)); }
public IEnumerable <Item> Trash() { GR.BusinessLogic.Inventory invenotry = new GR.BusinessLogic.Inventory(); return(invenotry.GetTrashList().ToList()); }