I have created a list of thoughts, now i should list one random thought.
I've made to list all of my toughts, but i need randomly just one.
[WebMethod]
I've made to list all of my toughts, but i need randomly just one.
[WebMethod]
public Mudra_Misla[] ListaMisli()
{
Mudra_Misla[] lista1;
Application.Lock();
if (Application["misli"] == null)
{
lista1 = new Mudra_Misla[1];
lista1[0] = new Mudra_Misla();
Application["misli"] = lista1;
}
else
{
lista1 = (Mudra_Misla[])Application["misli"];
}
Application.UnLock();
return lista1;
}