public async Task <IActionResult> GetAllFav([FromQuery] decimal userID) { OperationResponse <List <CategoryItem> > response = new OperationResponse <List <CategoryItem> >(); if (ModelState.IsValid) { response = await _favService.getUserFAV(userID); } else { response.HasErrors = true; response.Message = ModelStateUtil.GETModelStateErrorMSG(ModelState); } return(resultWithStatus(response)); }