Exemple #1
0
        private bool UpdateActivity()
        {
            Activity newActivity = new Activity(
                activityToEdit.Id,
                txtTitleActivity.Text,
                txtDescriptionActivity.Text,
                activityToEdit.Dt_created
                );

            if (ActivityDTO.UpdateActivity(newActivity))
            {
                this.activityToEdit = newActivity;
                return(true);
            }

            return(false);
        }