public ActionResult Delete(string id) { queries.Delete(id); TempData.SetStatusMessage("Tag deleted"); return(RedirectToAction("Index")); }
public void Delete(int id, string notes = "", bool hardDelete = false) { notes ??= string.Empty; if (hardDelete) { _queries.MoveToTrash(id, notes); } else { _queries.Delete(id, notes); } }