示例#1
0
        public override void Execute(string[] args)
        {
            try
            {
                FluentGenericDao.Domain.Entities.Task oTask = new FluentGenericDao.Domain.Entities.Task();
                oTask.Id = 1;
                oTask.Responsible = new Responsible() { Name = "Carlos Augusto" };
                //BusinessFactory.Task.Add(oTask);

            }
            catch (Exception)
            {

                throw;
            }
        }
示例#2
0
        public override void Execute(string[] args)
        {
            Console.WriteLine("Enter responsible name.");
            string name = Console.ReadLine();

            Console.WriteLine("Enter the task description.");
            string description = Console.ReadLine();

            try
            {
                FluentGenericDao.Domain.Entities.Responsible Responsible = new Domain.Entities.Responsible() { Name = name };
                BusinessFactory.Responsible.Add(Responsible);

                FluentGenericDao.Domain.Entities.Task oTask = new FluentGenericDao.Domain.Entities.Task();
                oTask.Description = description;
                oTask.Responsible = Responsible;
                BusinessFactory.Task.Add(oTask);

            }
            catch (Exception)
            {
                throw;
            }
        }