public async Task <bool> DeleteWeatherForecast(int weatherForecastId) { var request = new DeleteWeatherForecastRequest { Id = weatherForecastId }; return((await _client.DeleteWeatherForecastAsync(request)).Deleted); }
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 }); }