Exemple #1
0
        private void PerformAction()
        {
            Console.Clear();

            if (_selectedAction == "Add")
            {
                _viewBehaviour.Add();
            }
            else if (_selectedAction == "Edit")
            {
                _viewBehaviour.Edit();
            }
            else if (_selectedAction == "Remove")
            {
                _viewBehaviour.Remove();
            }
            else if (_selectedAction == "GetByPrimaryKey")
            {
                _viewBehaviour.GetByPrimaryKey();
            }
            else if (_selectedAction == "GetAll")
            {
                _viewBehaviour.GetAll();
            }
        }
 private ValidationResult BeginAdding()
 {
     view.Add(new Website());
     return(new ValidationResult()
     {
         IsSuccessfull = true
     });
 }