public List <PrescriptionViewModel> Add(PrescriptionViewModel prescription) { List <PrescriptionViewModel> result = GetPrescriptions(); result.Add(prescription); return(result); }
public List <PrescriptionViewModel> GetPrescriptions() { List <PrescriptionViewModel> result = new List <PrescriptionViewModel>(); PrescriptionViewModel Vm = null; foreach (var item in prescriptions) { Vm = new PrescriptionViewModel(item); result.Add(Vm); } return(result); }