internal string Edit(Card update) { var exists = GetById(update.Id); if (exists == null) { throw new Exception("Invalid id"); } else if (update.UserId != exists.UserId) { throw new Exception("You do not own this Card peasant!"); } _repo.Edit(update); return("Successfully Updated"); }