public ActionResult Delete(int id) { _seriesRepository.Delete(id); TempData["Message"] = "Your series was successfully deleted!"; return(RedirectToAction("Index")); }
public ActionResult Delete(int _seriesId) { var series = _seriesRepository.GetById(_seriesId); _seriesRepository.Delete(series); return(RedirectToAction("Find")); }
public IHttpActionResult Delete(Series series) { if (_seriesRepository.Delete(series)) { return(StatusCode(HttpStatusCode.NoContent)); } return(BadRequest("Series not deleted")); }