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

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

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

            BO.DiagnosisType diagnosisTypeBO = new BO.DiagnosisType();

            diagnosisTypeBO.ID = diagnosisType.Id;
            diagnosisTypeBO.DiagnosisTypeText = diagnosisType.DiagnosisTypeText;
            //diagnosisTypeBO.CompanyId = diagnosisType.CompanyId;
            diagnosisTypeBO.ICDTypeCodeID = diagnosisType.ICDTypeCodeID;

            if (diagnosisType.IsDeleted.HasValue)
            {
                diagnosisTypeBO.IsDeleted = diagnosisType.IsDeleted.Value;
            }
            if (diagnosisType.UpdateByUserID.HasValue)
            {
                diagnosisTypeBO.UpdateByUserID = diagnosisType.UpdateByUserID.Value;
            }

            return((T)(object)diagnosisTypeBO);
        }