Exemplo n.º 1
0
        private void AddNewClient(ContactFormPerson contactFormDetails, List <CheckListRow> checkListRows)
        {
            Client client = new Client()
            {
                StatusValue   = Enums.CaseStatuses[Client.YET_TO_BEGIN_STATUS_INDEX],
                ContactForm   = contactFormDetails,
                CheckListRows = checkListRows
            };

            client.CheckListRows[0].Person_1_value = client.ContactForm.Person_1.FullName;
            client.CheckListRows[0].Person_2_value = client.ContactForm.Person_2.FullName;

            IClientDAO clientDAO = new ClientFileDAO(new ConfigMgr());

            clientDAO.AddNewClient(client);
        }