public IActionResult List() { StudentsServices mongo = new StudentsServices("school", "students", "mongodb://localhost:27017/"); var students = mongo.getAll(); return(View("List", students)); }
public PartialViewResult getRecipientList() { StudentsServices mongo = new StudentsServices("school", "students", "mongodb://localhost:27017/"); var students = mongo.getAll(); return(PartialView("Students/RecipientList", students)); }