public IActionResult Additem(Items obj) { try { _repo.Additem(obj); return(Ok("item added")); } catch (Exception e) { return(NotFound(e.InnerException.Message)); } }