Esempio n. 1
0
        public async Task <bool> DeleteWeatherForecast(int weatherForecastId)
        {
            var request = new DeleteWeatherForecastRequest
            {
                Id = weatherForecastId
            };

            return((await _client.DeleteWeatherForecastAsync(request)).Deleted);
        }
Esempio n. 2
0
        public override async Task <DeleteWeatherForecastResponse> DeleteWeatherForecast(DeleteWeatherForecastRequest request, ServerCallContext context)
        {
            var weatherForecastId = request.Id;
            var result            = await _repository.DeleteWeatherForecast(weatherForecastId);

            return(new DeleteWeatherForecastResponse
            {
                Deleted = result
            });
        }