public override List <MIDAS.GBX.BusinessObjects.BusinessValidation> Validate <T>(T entity) { BO.DiagnosisCode diagnosisCode = (BO.DiagnosisCode)(object) entity; var result = diagnosisCode.Validate(diagnosisCode); return(result); }
public override T Convert <T, U>(U entity) { DiagnosisCode diagnosisCode = entity as DiagnosisCode; if (diagnosisCode == null) { return(default(T)); } BO.DiagnosisCode diagnosisCodeBO = new BO.DiagnosisCode(); diagnosisCodeBO.ID = diagnosisCode.Id; diagnosisCodeBO.DiagnosisTypeId = diagnosisCode.DiagnosisTypeId; diagnosisCodeBO.DiagnosisCodeText = diagnosisCode.DiagnosisCodeText; diagnosisCodeBO.DiagnosisCodeDesc = diagnosisCode.DiagnosisCodeDesc; //diagnosisCodeBO.CompanyId = diagnosisCode.CompanyId; if (diagnosisCode.IsDeleted.HasValue) { diagnosisCodeBO.IsDeleted = diagnosisCode.IsDeleted.Value; } if (diagnosisCode.UpdateByUserID.HasValue) { diagnosisCodeBO.UpdateByUserID = diagnosisCode.UpdateByUserID.Value; } return((T)(object)diagnosisCodeBO); }