Using multiple models in a single controller [closed]
问题 I have used EF Designer from database to build my models from a database created for my project. For a single controller, I need to reference multiple models. An example of this is that there is a Users table which contains the user department and office. I need to reference two separate tables DepartmentPermissions and OfficePermissions to determine what data the user is able to see. Here are examples of the auto generated models: //-----------------------------------------------------------