remove unused api methods

This commit is contained in:
chsakell
2016-10-07 10:40:51 +03:00
parent 048968b9ba
commit b5144cc517
2 changed files with 0 additions and 25 deletions

View File

@@ -26,22 +26,6 @@ namespace LiveGameFeed.Controllers
_matchRepository = matchRepository; _matchRepository = matchRepository;
} }
// GET api/values
[HttpGet]
public IEnumerable<Feed> Get()
{
IEnumerable<Feed> _feeds = _feedRepository.GetAll();
return _feeds;
}
// GET api/feeds/5
[HttpGet("{id}")]
public Feed Get(int id)
{
return _feedRepository.GetSingle(id);
}
// POST api/feeds // POST api/feeds
[HttpPost] [HttpPost]
public async void Post([FromBody]FeedViewModel feed) public async void Post([FromBody]FeedViewModel feed)

View File

@@ -33,15 +33,6 @@ namespace LiveGameFeed.Controllers
return _matchesVM; return _matchesVM;
} }
// GET api/values/5
[HttpGet("{id}")]
public MatchViewModel Get(int id)
{
Match _match = _matchRepository.GetSingle(id);
MatchViewModel _matchVM = Mapper.Map<Match, MatchViewModel>(_match);
return _matchVM;
}
// PUT api/values/5 // PUT api/values/5
[HttpPut("{id}")] [HttpPut("{id}")]
public async void Put(int id, [FromBody]MatchScore score) public async void Put(int id, [FromBody]MatchScore score)