public async Task <IActionResult> GetAll() { try { var res = await _itemService.GetAll(); if (res == null) { return(NotFound()); } return(Ok(res)); } catch (Exception ex) { return(DefaultError(ex)); } }