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