public async Task <IEnumerable <Temperature> > GetTemperaturesByDetectionPoint(string pointId) { if (!long.TryParse(pointId, out long id)) { throw new MyAppException { ErrorCode = MyCustomErrorCodes.DISTRICT_ID_UNPARSABLE }; } return(await _service.GetByDetectionPointId(id)); }