public async Task <IActionResult> DeleteConfirmed(int id) { var team = await _filmRepository.GetFilm(id); _filmRepository.DeleteFilm(id); await _filmRepository.Save(); return(RedirectToAction(nameof(Index))); }
public ActionResult Delete(int filmId) { Film deletedFilm = repository.DeleteFilm(filmId); if (deletedFilm != null) { TempData["message"] = string.Format("Фильм \"{0}\" был удален", deletedFilm.Name); } return(RedirectToAction("Index")); }
public Task <bool> DeleteFilm(int id) { return(_filmRepository.DeleteFilm(id)); }
public Task <SaveFilmResult> DeleteFilm(int filmId) { return(filmRepository.DeleteFilm(filmId)); }
public Task <bool> DeleteFilm(int filmId) { return(_repo.DeleteFilm(filmId)); }
public void DeleteFilm(Film film) => _inner.DeleteFilm(film);