Beispiel #1
0
        internal string Delete(int id, string userId)
        {
            Review original = Get(id);

            if (original.OwnerId != userId)
            {
                throw new Exception("You cannot delete something you did not create");
            }
            _revsrepo.Remove(id);
            return("Successsfully Deleted");
        }