示例#1
0
 public DiseasePrescription GetDiseasePrescriptionById(Guid id)
 {
     return(_context
            .DiseasePrescriptions
            .Where(DiseaseSpecs.GetDiseasePrescriptionById(id))
            .FirstOrDefault());
 }
示例#2
0
 public Disease GetByCID(string cid)
 {
     return(_context
            .Diseases
            .Where(DiseaseSpecs.GetByCID(cid))
            .FirstOrDefault());
 }
示例#3
0
 public Disease GetByName(string name)
 {
     return(_context
            .Diseases
            .Where(DiseaseSpecs.GetByName(name))
            .FirstOrDefault());
 }
示例#4
0
 public Disease GetById(Guid id)
 {
     return(_context
            .Diseases
            .Where(DiseaseSpecs.GetById(id))
            .FirstOrDefault());
 }