public HttpResponseMessage GetSubcategoriesByCategory(SubCategoryListRequest request) { try { var CategoryDrop = _categoryManagementService.GetSubCategories(request); return (Request.CreateResponse <ApiResponse <List <Category> > >(HttpStatusCode.OK, CategoryDrop)); } catch (Exception ex) { return (Request.CreateResponse <System.Exception>(HttpStatusCode.InternalServerError, ex)); } }