add a WriteStrain method to the service
This commit is contained in:
parent
3a0d6eeb78
commit
12b8de2c57
|
@ -19,6 +19,8 @@ namespace Server
|
|||
[OperationContract]
|
||||
void WriteFoodPlace(FoodPlace foodplace);
|
||||
[OperationContract]
|
||||
void WriteStrain(Strain strain);
|
||||
[OperationContract]
|
||||
ICollection<Gender> GetGenders();
|
||||
[OperationContract]
|
||||
ICollection<Salutation> GetSalutations();
|
||||
|
|
|
@ -85,5 +85,11 @@ namespace Server
|
|||
FoodPlaceDB dataaccess = new FoodPlaceDB();
|
||||
dataaccess.CreateFoodPlace(foodplace);
|
||||
}
|
||||
|
||||
public void WriteStrain(Strain strain)
|
||||
{
|
||||
StrainDB dataaccess = new StrainDB();
|
||||
dataaccess.CreateStrain(strain);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue