public ActionResult FindSubCategoryById(int categoryId) { try { var subcategory = _subCategoryService.FindById(categoryId); return(Ok(subcategory)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }