/// <summary> /// Deletes list by given id /// </summary> /// <param name="listId">list id</param> public void DeleteList(Guid listId) { ListsManager listsManager = ListsManager.GetManager(); List list = listsManager.GetLists().Where(l => l.Id == listId).FirstOrDefault(); if (list != null) { listsManager.DeleteList(list); listsManager.SaveChanges(); } }