public HttpResponseMessage GetAvailablerevenue(HttpRequestMessage request, int year, int period, string search) { HttpResponseMessage response = null; IncomeAdjustmentCommFeeSearchManual[] cf = _MPRPLService.GetCommFeesByYearPeriod(year, period, search); // notice no need to create a seperate model object since Revenue entity will do just fine response = request.CreateResponse <IncomeAdjustmentCommFeeSearchManual[]>(HttpStatusCode.OK, cf); return(response); }