public string retAllCompaniesFromCollection() { List <Companies> c = mongoDbase.GetCompanies(); List <string> temp = new List <string>(); if (c.Count != 0) { return(JsonConvert.SerializeObject(c)); } else { return(null); } }