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