public List <string> GetMedicineNamesAndStockQuantities() { var medicinesInStock = MedicineService.GetAllMedicinesInStock(); var results = new List <string>(medicinesInStock.Count); foreach (var medicine in medicinesInStock) { results.Add($@"{medicine.Name} - {medicine.Quantity}"); } return(results); }