public decimal CheckAmount(int id) { Medicine medicine = new Medicine(); listWithCurrentObject = new List <Medicine>(); var medicineById = medicine.GetbyId(id); return(decimal.Parse(medicineById.Amount.ToString())); }
public List <Medicine> GetMedicinesById(int id) { Medicine medicine = new Medicine(); listWithCurrentObject = new List <Medicine>(); var medicineById = medicine.GetbyId(id); listWithCurrentObject.Add(medicineById); return(listWithCurrentObject); }