public string Delete(int id, string userId) { VaultKeep original = _repo.GetOne(id); if (original == null) { throw new System.Exception("No keeps in that vault"); } if (original.CreatorId != userId) { throw new System.Exception("Access is denied"); } if (_repo.Delete(id)) { return("Successfully deleted"); } return("Not deleted"); }