public IHttpActionResult GetSensorById(int startIndex, int pageSize) { var ht = new Hashtable() { { "startIndex", startIndex }, { "pageSize", pageSize } }; var list = _sensorService.GetList(ht).ToList(); return(Json <List <Sensor> >(list)); }