private bool checkDupplicatePublisher(string id) { bool check = true; publisherdao.getAllPublisher().ForEach(delegate(Publisher p) { if (p.PublisherID == id) { check = false; } }); return(check); }