public void AddMedications(Medications medications) { medications.LastModifiedDateUtc = DateTime.UtcNow; medications.CreatedDateUtc = DateTime.UtcNow; medications.LastModifiedBy = 1; _repository.Create(medications); }
public Guid Create(MedicationsDTO entityDTO) { Medications medications = CreateMedicationsFromDTO(entityDTO); _medicationsRepository.Create(medications); return(medications.KeyMedication); }