/// <summary>
        /// Get All Inventory Item Categories in the database
        /// </summary>
        /// <returns></returns>
        public IHttpActionResult Get()
        {
            InventoryItemCategoryService inventoryItemCategoryService = CreateInventoryItemCategoryService();
            var inventoryItemCategories = inventoryItemCategoryService.GetInventoryItemCategory();

            return(Ok(inventoryItemCategories));
        }
        private InventoryItemCategoryService CreateInventoryItemCategoryService()
        {
            var userId       = Guid.Parse(User.Identity.GetUserId());
            var stateService = new InventoryItemCategoryService(userId);

            return(stateService);
        }
        /// <summary>
        /// Delete an Inventory Item Category from the database.
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public IHttpActionResult Delete(int id)
        {
            InventoryItemCategoryService inventoryItemCategoryService = CreateInventoryItemCategoryService();
            var inventoryItemCategories = inventoryItemCategoryService.DeleteInventoryItemCategoryById(id);

            if (inventoryItemCategories == true)
            {
                return(Ok(inventoryItemCategories));
            }
            return(InternalServerError());
        }