public Prescription GetByDescription(string description) { return(_context .Prescriptions .Where(PrescriptionSpecs.GetByDescription(description)) .FirstOrDefault()); }
public ICollection <PrescriptionDetail> GetPrescriptionDetailById(Guid id) { return(_context .PrescriptionDetails .Where(PrescriptionSpecs.GetPrescriptionDetailById(id)) .ToList()); }
//#todo Ajustar public ICollection <Prescription> GetByDiseaseId(Guid diseaseId) { return(_context .Prescriptions .Where(PrescriptionSpecs.GetById(diseaseId)) .ToList()); }
public Prescription GetById(Guid id) { return(_context .Prescriptions .Include("PrescriptionDetails") .Include("PrescriptionDetails.Nutraceutical") .Where(PrescriptionSpecs.GetById(id)) .FirstOrDefault()); }