public Domain.Entities.Medications.Medication UpdateMedication(Domain.Entities.Medications.Medication medication) { var medicationToUpdate = _medicationRepository.GetBy(medication.Id); return(_medicationRepository.Update(medicationToUpdate.UpdateMedicationQuantity(medication))); }