public string returnWorkerFromEmailNoPassSrc(string name) { List <Workers> w = mongoDbase.getWorkerByEmailS(name); if (w.Count != 0) { return(JsonConvert.SerializeObject(w)); } else { return("Worker not found!"); } }