create MatchScore update API method

This commit is contained in:
chsakell
2016-10-04 11:21:48 +03:00
parent 9e31c8b135
commit a36624b0bf
4 changed files with 19 additions and 17 deletions

View File

@@ -27,7 +27,7 @@ namespace LiveGameFeed.Controllers
{
_matchRepository = matchRepository;
_feedRepository = feedRepository;
timerService.TimerElapsed += _feed_Generate;
// timerService.TimerElapsed += _feed_Generate;
}
public IActionResult Index()

View File

@@ -43,9 +43,10 @@ namespace LiveGameFeed.Controllers
}
// POST api/values
[HttpPost]
public void Post([FromBody]string value)
[HttpPost("update", Name = "UpdateScore")]
public void UpdateScore([FromBody]MatchScore matchScore)
{
}
// PUT api/values/5