public async Task <IActionResult> Update(long id, [FromBody] FilmFormModel model) { if (!await Films.CheckIfExists(id)) { return(NotFound()); } await Films.Update(id, model); return(Ok()); }
public async Task <IActionResult> Remove(long id) { if (!await Films.CheckIfExists(id)) { return(NotFound()); } await Films.Remove(id); return(Ok()); }