Esempio n. 1
0
        public decimal CheckAmount(int id)
        {
            Medicine medicine = new Medicine();

            listWithCurrentObject = new List <Medicine>();
            var medicineById = medicine.GetbyId(id);

            return(decimal.Parse(medicineById.Amount.ToString()));
        }
Esempio n. 2
0
        public List <Medicine> GetMedicinesById(int id)
        {
            Medicine medicine = new Medicine();

            listWithCurrentObject = new List <Medicine>();
            var medicineById = medicine.GetbyId(id);

            listWithCurrentObject.Add(medicineById);
            return(listWithCurrentObject);
        }