internal Whiteboard Delete(int id, string userId) { Whiteboard original = GetById(id); if (userId != original.CreatorId) { throw new Exception("You cannot delete this."); } _repo.Delete(id); return(original); }
internal Whiteboard Delete(int id, string userId) { Whiteboard original = GetById(id); if (userId != original.CreatorId) { throw new Exception("You cannot delete this."); } _repo.Delete(id); return(original); }