示例#1
0
 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));
        }
示例#3
0
 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));
        }