public ActionResult ViewUser() { UserDataLayer objData = new UserDataLayer(); List <User> ListUser = objData.GetUsers(); return(View(ListUser)); }
public ActionResult Index() { UserDataLayer ObjUserDataLayer = new UserDataLayer(); List <User> ListUser = ObjUserDataLayer.GetUsers(); return(View(ListUser)); }