internal Keep DeleteOne(int id, string userInfoId) { Keep current = GetOneKeep(id); if (current == null) { throw new SystemException("Invalid Id: This keep does not exist or the wrong Id was passed in the delete request."); } if (current.CreatorId != userInfoId) { throw new SystemException("You are no the owner of this keep, you do not have the permission to edit."); } return(_krepo.DeleteOneKeep(id)); }