示例#1
0
        public async Task <bool> UpdateShort(int id, EpisodeShortModel model)
        {
            var pathParams = new HttpPathParameters();

            pathParams.Add <int>(id, -1);

            var settings = new HttpSettings($"{this.Url}/short", null, pathParams, "Episode updating");

            var body = new HttpBody <EpisodeShortModel>(model);

            return(await this.Http.Update <EpisodeShortModel>(settings, body));
        }
示例#2
0
 public IActionResult UpdateShort(int id, [FromBody] EpisodeShortModel model)
 {
     this._episodeService.Update <EpisodeShortModel>(id, model);
     return(this.Ok());
 }