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)); }
public IActionResult UpdateShort(int id, [FromBody] EpisodeShortModel model) { this._episodeService.Update <EpisodeShortModel>(id, model); return(this.Ok()); }