public IActionResult Put(int id, [FromBody] RankingModel model) { return(Put(_service.UpdateRanking, model)); }
public RankingModel UpdateRanking(RankingModel model) { var updated = _repo.Update(model); return(GetRanking(updated.Id)); }
public IActionResult Post([FromBody] RankingModel model) { return(Post(_service.AddRanking, model)); }
public RankingModel AddRanking(RankingModel model) { var inserted = _repo.Insert(model); return(GetRanking(inserted.Id)); }