public DtoShr FetchClientShrNew(int id) { PsmartShrManager psmartShrManager = new PsmartShrManager(); if (id is int i) { var shr = psmartShrManager.GenerateShrForEmr(id); return(shr); } else { PsmartShrCardSerialManager psmartShrCardSerialManager = new PsmartShrCardSerialManager(); var shr = psmartShrCardSerialManager.GenerateShrForEmr(""); return(shr); } }
public DtoShr FetchClientShr(psmartCard psmartCard) { PsmartShrManager psmartShrManager = new PsmartShrManager(); if (psmartCard.PATIENTID is int i) { var shr = psmartShrManager.GenerateShrForEmr(psmartCard.PATIENTID); return(shr); } else { PsmartShrCardSerialManager psmartShrCardSerialManager = new PsmartShrCardSerialManager(); var shr = psmartShrCardSerialManager.GenerateShrForEmr(psmartCard.CARD_SERIAL_NO); return(shr); } }