public HttpResponseMessage GetCategoryHomeDrop() { try { SqlParameter[] parameters = { new SqlParameter("@countryId", "0") }; var CategoryDrop = _categoryManagementService.GetCategoryDropHome(StoredProceduresList.GetCatListHome, System.Data.CommandType.StoredProcedure, parameters); return (Request.CreateResponse <ApiResponse <List <CategoryDropHomeResponse> > >(HttpStatusCode.OK, CategoryDrop)); } catch (Exception ex) { return (Request.CreateResponse <System.Exception>(HttpStatusCode.InternalServerError, ex)); } }