예제 #1
0
        public Prescription GetEager(long id)
        {
            Prescription prescription = Get(id);

            foreach (Drug drug in prescription.Drug)
            {
                Drug temp = _drugRepository.GetEager(drug.Id);
                drug.Name     = temp.Name;
                drug.Amount   = temp.Amount;
                drug.Approved = temp.Approved;
            }
            return(prescription);
        }
        public Therapy GetEager(long id)
        {
            Therapy therapy = Get(id);

            foreach (Drug drug in therapy.Drug)
            {
                Drug temp = _drugRepository.GetEager(drug.Id);
                drug.Name     = temp.Name;
                drug.Amount   = temp.Amount;
                drug.Approved = temp.Approved;
            }
            return(therapy);
        }
 public Drug Get(long id)
 {
     return(_repository.GetEager(id));
 }