title: POST request responds with 404 while GET request works fine .NET Core, React
body: <p>I am trying to make simple web application with one POST and one GET request, I was not able to find any solution and I am pretty desperate. I am using .NET Core with React, everything works fine, however I cannot get POST request to work, I always get 404 in console.</p>
  
  <p><strong>MY POST Request from React class</strong></p>
  
  <pre><code>handleSubmit(event){
      superagent.post('api/WorkingTime/SaveWorkingTime')
      .send({
      Comment: this.state.Comment,
      Date: this.state.Date,
      Time: this.state.Time
      })
      .set('Accept', 'application/json')
      .then(function(res) {
      alert('Saved ' + JSON.stringify(res.body));
      });
  }
  </code></pre>
  
  <p><strong>And this is my controller where I want to receive the JSON (Updated - trying to return TimeLog object, still 404)</strong></p>
  
  <pre><code>[Produces("application/json")]
  [Route("api/[controller]")]
  public class WorkingTimeController : Controller
  {
      [HttpGet("[action]")]
      public IEnumerable&lt;string&gt; WorkingTime()
      {
          return new string[] { "value1", "value2" };
      }
  
      [HttpPost]
      public TimeLog SaveWorkingTime([FromBody] TimeLog time)
      {
          return time;
      }
  }
  public class TimeLog
  {
      public string Comment { get; set; }
      public string Date { get; set; }
      public string Time { get; set; }
  }
  </code></pre>
  
  <p>As I mentioned before, I get 200 OK when trying to fetch WorkingTime()</p>
  
  <p><strong>THIS GET Request works fine</strong></p>
  
  <pre><code>   fetch('api/WorkingTime/WorkingTime')
      .then(response =&gt; response.json())
      .then(data =&gt; {
          this.setState({ msg: data }); 
      });
  </code></pre>
  
  <p><strong>These are the payload data I need to send:</strong>
  <a href="https://i.stack.imgur.com/hGC1z.png" rel="nofollow noreferrer">Screenshot from console</a></p>
  
  <p>Anyone please can tell me where the issue may be? Every help will be appreciated.</p>