コード例 #1
0
        public List <PrescriptionViewModel> Add(PrescriptionViewModel prescription)
        {
            List <PrescriptionViewModel> result = GetPrescriptions();

            result.Add(prescription);
            return(result);
        }
コード例 #2
0
        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);
        }