add a WriteStrain method to the service

This commit is contained in:
Andreas Zweili 2018-07-29 12:39:45 +02:00
parent 3a0d6eeb78
commit 12b8de2c57
2 changed files with 8 additions and 0 deletions

View File

@ -19,6 +19,8 @@ namespace Server
[OperationContract]
void WriteFoodPlace(FoodPlace foodplace);
[OperationContract]
void WriteStrain(Strain strain);
[OperationContract]
ICollection<Gender> GetGenders();
[OperationContract]
ICollection<Salutation> GetSalutations();

View File

@ -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);
}
}
}