コード例 #1
0
ファイル: Accounts.cs プロジェクト: SufyanIqbal1622/OCPDemo
        public EmployModel Create(IApplicentModel person)
        {
            EmployModel output = new EmployModel();

            output.FirstName    = person.FirstName;
            output.LastName     = person.LastName;
            output.EmailAddress = $"{person.FirstName.Substring(0, 1)}{person.LastName}@acme.com";

            return(output);
        }
コード例 #2
0
        public EmployModel Create(IApplicentModel person)
        {
            EmployModel output = new EmployModel();

            output.FirstName    = person.FirstName;
            output.LastName     = person.LastName;
            output.EmailAddress = $"{person.FirstName.Substring(0, 1)}{person.LastName}@acmeCorp.com";

            output.IsManager   = true;
            output.IsExacitive = true;

            return(output);
        }