public bool PostLesson1(Lesson1 lesson1) { if (lesson1.IsValid()) { lock (_lockObject) { SaltServiceAgent.PostLesson1(lesson1.ToDataContract()); return(true); } } else { lesson1.AddError("Lesson object is not valid"); return(false); } }