public void AgreementSave() { if (IsNew) { ctx.AddAgrees(new AgreementDbModel { Client = Agreement.Client, StartDate = Agreement.StartDate, EndDate = Agreement.EndDate } ); } }