Hello, I was followed all the steps from following article.
https://www.c-sharpcorner.com/article/create-a-free-mongodb-atlas-cluster-and-connect-with-mvc/
But, still I can't able to connect with MongoDB using asp.net mvc.
My code is as follows.
public async Task> GetPermits()
{
try
{
return await db.Permit.Find(_ => true).ToListAsync();
}
catch
{
throw new NotImplementedException();
}
}
Kindly help me out of this.

Puneet KankarPosted Dec 5, 2019, 10:25 AM
Jaimin ShethiyaPosted Dec 5, 2019, 5:56 AM
Can you please refer below link for your query.
https://www.codeproject.com/Tips/864952/CRUD-Operation-in-MVC-with-MongoDB
Thanks
Sanwar RanwaPosted Dec 4, 2019, 1:17 AM