public async Task <JsonResult> Get() { var mongoDbService = new MongoDbService("mongodb://*****:*****@ds149754.mlab.com:49754/chatter", "chatter", "users"); var users = await mongoDbService.GetAllUsers(); return(Json(users)); }