//Construtor UDEN MedicalRecordID public MedicalRecord(string entry, Animal animal, Treatment treatment) { this.entry = entry; this.animal = animal; this.treatment = treatment; }
//Laver Obj af MedicalRecord public MedicalRecord CreateMedicalRecord(string entry, Animal animal, Treatment treatment) { MedicalRecord medicalRecord = new MedicalRecord(entry, animal, treatment); return(medicalRecord); }
//Laver Obj af SaleLineItem public SaleLineItem CreateSaleLineItem(Item item, int amount, decimal price, Treatment treatment, Prescription prescription) { SaleLineItem saleLineItem = new SaleLineItem(item, amount, price, treatment, prescription); return(saleLineItem); }
public SaleLineItem(Item item, int saleLineItemID, int amount, decimal price, Treatment treatment, Prescription prescription) { this.item = item; this.saleLineItemID = saleLineItemID; this.amount = amount; this.price = price; this.treatment = treatment; this.prescription = prescription; }