コード例 #1
0
        public static BaseCompanyPathModel ToBaseCompanyPath(this CompanyPath companyPath)
        {
            BaseCompanyPathModel _result = new BaseCompanyPathModel();

            _result.Id           = companyPath.Id;
            _result.CompanyName  = companyPath.CompanyName;
            _result.CompanyPath1 = companyPath.CompanyPath1;
            _result.IsDefault    = companyPath.IsDefault;
            _result.CreatedDate  = companyPath.CreatedDate;
            _result.ModifiedDate = companyPath.ModifiedDate;
            return(_result);
        }
コード例 #2
0
        public static CompanyPath ToCompanyPath(this BaseCompanyPathModel companyPath)
        {
            CompanyPath _result = new CompanyPath();

            if (companyPath.Id.HasValue)
            {
                _result.Id = companyPath.Id.GetValueOrDefault();
            }
            _result.CompanyName  = companyPath.CompanyName;
            _result.CompanyPath1 = companyPath.CompanyPath1;
            _result.IsDefault    = companyPath.IsDefault;
            _result.CreatedDate  = companyPath.CreatedDate;
            _result.ModifiedDate = companyPath.ModifiedDate;
            return(_result);
        }