I've a method like this:
public async Task<Response> HandleRequest(string connectionId, Request request)
{
if (request is AuthorizeRequest)
{
return await _handler.HandleRequest(connectionId, request as AuthorizeRequest);
}
if (request is ChangeConfigurationRequest)
{
return await _handler.HandleRequest(connectionId, request as ChangeConfigurationRequest);
}
return await Task.FromResult<Response>(null); //My question is here
}
My question is: Should I return return await Task.FromResult(null); or retun null; Because if request is not 'AuthorizeRequest' and 'ChangeConfigurationRequest'
Tks all for helps