i wrote a stored procedure in SQL server Management Studio like this :
Then I'm using it in a C# WPF Application with an Entity Framework DataModel :
public static void AdressagePalettesEntr(int stoId, string entite, string adresse)
{
using (GsDataModel dc = new GsDataModel())
{
int i = dc.WMSEntr_Adressage_Palettes(stoId: stoId,
entite: entite,
adresse: adresse);
_ = dc.SaveChanges();
}
}
What i want is : when the stored procedure is at "print('Adresse indisponible !')" the user will see a messagebox with the appropriate text in it.
Thanks for helping me