Add a WriteRelation method to the service
This commit is contained in:
parent
c71ec890ca
commit
1c5bf7b9e9
|
@ -21,6 +21,8 @@ namespace Server
|
|||
[OperationContract]
|
||||
void WriteStrain(Strain strain);
|
||||
[OperationContract]
|
||||
void WriteRelation(PatientAtFoodPlace relation);
|
||||
[OperationContract]
|
||||
ICollection<Gender> GetGenders();
|
||||
[OperationContract]
|
||||
ICollection<Salutation> GetSalutations();
|
||||
|
|
|
@ -97,5 +97,11 @@ namespace Server
|
|||
PatientDB dataaccess = new PatientDB();
|
||||
return dataaccess.GetAllPatients();
|
||||
}
|
||||
|
||||
public void WriteRelation(PatientAtFoodPlace relation)
|
||||
{
|
||||
PatientAtFoodPlaceDB dataaccess = new PatientAtFoodPlaceDB();
|
||||
dataaccess.CreateRelation(relation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue