Пример #1
0
        public ActionResult Delete(string id)
        {
            queries.Delete(id);

            TempData.SetStatusMessage("Tag deleted");

            return(RedirectToAction("Index"));
        }
Пример #2
0
        public void Delete(int id, string notes = "", bool hardDelete = false)
        {
            notes ??= string.Empty;

            if (hardDelete)
            {
                _queries.MoveToTrash(id, notes);
            }
            else
            {
                _queries.Delete(id, notes);
            }
        }