public override List <MIDAS.GBX.BusinessObjects.BusinessValidation> Validate <T>(T entity)
        {
            BO.ProcedureCodeCompanyMapping procedureCodeCompanyMapping = (BO.ProcedureCodeCompanyMapping)(object) entity;
            var result = procedureCodeCompanyMapping.Validate(procedureCodeCompanyMapping);

            return(result);
        }
        public override T Convert <T, U>(U entity)
        {
            ProcedureCodeCompanyMapping procedureCodeCompanyMapping = entity as ProcedureCodeCompanyMapping;

            if (procedureCodeCompanyMapping == null)
            {
                return(default(T));
            }

            BO.ProcedureCodeCompanyMapping procedureCodeCompanyMappingBO = new BO.ProcedureCodeCompanyMapping();

            procedureCodeCompanyMappingBO.ID = procedureCodeCompanyMapping.ID;
            procedureCodeCompanyMappingBO.ProcedureCodeID   = procedureCodeCompanyMapping.ProcedureCodeID;
            procedureCodeCompanyMappingBO.CompanyID         = procedureCodeCompanyMapping.CompanyID;
            procedureCodeCompanyMappingBO.Amount            = procedureCodeCompanyMapping.Amount;
            procedureCodeCompanyMappingBO.EffectiveFromDate = procedureCodeCompanyMapping.EffectiveFromDate;
            procedureCodeCompanyMappingBO.EffectiveToDate   = procedureCodeCompanyMapping.EffectiveToDate;


            if (procedureCodeCompanyMapping.IsDeleted.HasValue)
            {
                procedureCodeCompanyMappingBO.IsDeleted = procedureCodeCompanyMapping.IsDeleted.Value;
            }
            if (procedureCodeCompanyMapping.UpdateByUserID.HasValue)
            {
                procedureCodeCompanyMappingBO.UpdateByUserID = procedureCodeCompanyMapping.UpdateByUserID.Value;
            }

            return((T)(object)procedureCodeCompanyMappingBO);
        }