Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Consider NoContent action result method on Controller #3334

Closed
PradeepKadubandi opened this issue Oct 16, 2015 · 3 comments
Closed

Consider NoContent action result method on Controller #3334

PradeepKadubandi opened this issue Oct 16, 2015 · 3 comments
Assignees
Milestone

Comments

@PradeepKadubandi
Copy link

This came up while I and Ryan were briefly discussing code to be generated for Web API scaffolding, it may be handy to define NoContent action result method on Controller class.

@dan2dev
Copy link

dan2dev commented Oct 16, 2015

This is already implemented @PradeepKadubandi

    public IActionResult index() {
        return new NoContentResult();
    }

Is this what you are looking for?

@Eilon
Copy link
Member

Eilon commented Oct 17, 2015

I would imagine this is about having a helper factory method on the Controller base class, just like there is for many other result types.

@ryanbrandenburg
Copy link
Contributor

Fixed in #3547

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants