Пример #1
0
    public string retWorkerFromName(string name)
    {
        List <Workers> w = mongoDbase.getWorkerByNameS(name);

        if (w.Count != 0)
        {
            return(JsonConvert.SerializeObject(w));
        }
        else
        {
            return("Worker with that name doesn't exist in our registry!");
        }
    }