Beispiel #1
0
    public string retWorkerFromLastNameSrc(string name)
    {
        List <Workers> w = mongoDbase.getWorkerByLastNameS(name);

        if (w.Count != 0)
        {
            return(JsonConvert.SerializeObject(w));
        }
        else
        {
            return("Worker not found!");
        }
    }