mirror of
https://github.com/chsakell/aspnet-core-signalr-angular.git
synced 2025-12-22 17:27:48 +00:00
remove unused api methods
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user