public IActionResult CreateItem(Item c) { try { var cm = new ItemManagement(); cm.CreateItem(c); return(Ok()); } catch (Exception ex) { return(StatusCode(500, ex.Message)); } }