public void DoUpdateAction() { var Model = MapToObject(); UsersHandler usersHandler = new UsersHandler(); usersHandler.Update(Model); MessageCollection.copyFrom(usersHandler.MessageCollection); if (MessageCollection.isErrorOccured) { MessageCollection.PublishLog(); lbl_err.Text = MessageCollection.Messages[MessageCollection.Messages.Count - 1].ErrorMessage; lbl_err.Visible = true; } else { lbl_err.Text = "Record Updated Successfully"; lbl_err.ForeColor = System.Drawing.Color.Green; } }