public IEnumerable <DashboardViewModels> Get(string id, string de = null, string ate = null, [FromQuery] int skip = 0, [FromQuery] int top = 0, [FromQuery] string orderBy = null, [FromQuery] bool blocked = false) { if (id == null) { throw new Box.Common.BoxLogicException("É necessário informar o id do dispositivo."); } var deviceRegistration = _sgiService.GetDeviceRegistrationFull(id); var totalCount = new OptionalOutTotalCount(); var reports = _sgiService.GetReports(id, User, deviceRegistration.Package.Type, skip, top, de, ate, totalCount, orderBy, blocked).ToArray(); Request.SetListTotalCount(totalCount.Value); return(reports); }