Exemplo n.º 1
0
 public TenderMedication(TenderMedicationDTO tenderMedicationDTO, int tenderId)
 {
     MedicationId             = tenderMedicationDTO.MedicationId;
     TenderID                 = tenderId;
     TenderMedicationQuantity = tenderMedicationDTO.MedicationQuantity;
 }
Exemplo n.º 2
0
        public TenderMedication CreateMedicationForTender(int tenderId, TenderMedicationDTO medicationDTO)
        {
            TenderMedication tenderMedication = new TenderMedication(medicationDTO, tenderId);

            return(_tenderMedicationRepository.Create(tenderMedication));
        }