public ActionResult Delete(int id, EditionViewModel model) { Editions editionToDelete = new Editions(); editionToDelete = editionService.GetEditionById(id); model.InjectFrom(editionToDelete); editionService.Delete(editionToDelete); editionService.Save(); return(RedirectToAction(nameof(Index))); }
public IHttpActionResult Delete(List <string> ids) { return(Ok(_service.Delete(ids))); }
public void Delete(Guid id) { _editionService.Delete(id); }