private bool CommitInsert(Resignation resign) { if (Adapter.InsertRecord(resign, out var error)) { Viewer.AddToCommitLog(resign, CommitSuccess, ActionOkColor); return(true); } else { Viewer.AddToCommitLog(resign, error, ActionFailColor); return(false); } }