You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a controller action which has the following signature
public async Task Delete(int id);
it returns Task so that the webapi will return a 204 No Content by default. However the RouteLinker.GetUriAsync is type parameterized and expects the 2nd argument to be a parameterized Task.
I think there should be a non generic version of the method that has the following signature:
public Task<Uri> GetUriAsync<T>(Expression<Func<T, Task>> method);
The text was updated successfully, but these errors were encountered:
As a workaround, could you return this.StatusCode(HttpStatusCode.NoContent)? AFAICT, this would achieve the same result, while keeping the return value of your method Task<IHttpActionResult>.
I have a controller action which has the following signature
public async Task Delete(int id);
it returns Task so that the webapi will return a 204 No Content by default. However the RouteLinker.GetUriAsync is type parameterized and expects the 2nd argument to be a parameterized Task.
I think there should be a non generic version of the method that has the following signature:
public Task<Uri> GetUriAsync<T>(Expression<Func<T, Task>> method);
The text was updated successfully, but these errors were encountered: