public String getText(DateOfOrder date, DoctorsOrder order, StringBuilder stringBuilder) { foreach (MedicineForOrdering medicine in MedicineService.GetAll()) { if (isOrderInRequiredPeriod(medicine, date, order)) { stringBuilder.Append("\n Medicine name: " + medicine.Name + "\n Ordered quantity: " + medicine.Quantity + " (Date: " + order.DateEnd.Date.ToString() + ")\n"); } } return(stringBuilder.ToString()); }
public List <Medicine> GetAll() { return(medicineService.GetAll()); }
public IActionResult Get() { return(Ok(MedicineService.GetAll())); }
public IEnumerable <Medicine> GetAll() => medicineService.GetAll();
public IEnumerable <MedicineInfo> GetAll() { return(_medicineService.GetAll()); }
private int getQuantity(DateOfOrder date, int totalQuatity, DoctorsOrder order) { return(MedicineService.GetAll().Where(medicine => isOrderInRequiredPeriod(medicine, date, order)).Sum(medicine => medicine.Quantity)); }
public MedicineSearchModel(string medicineName, string medicineSize, string medicineType) : this() { this.Medicines = _medicineService.GetAll(medicineName, medicineSize, medicineType); }