ASP.NET MVC TASK MANAGER one-to-many relationship -
i trying learn asp.net mvc have started build small application - task manager based on tutorials on internet (mvc music store, nerd dinner, etc ...). ive got stuck while trying define actionresult method in controller. i have model, defining activities. each activity can have several tasks. activity 1 (each activiy has got several tasks (task 1, task 2, etc)) activity 2 activity 3 activity n question: i ask definition of actionresult method, return view list of tasks related selected activity. picture here: http://sdrv.ms/z46nze the problém is, not able define method one-to-many relationship. whole project here in skydrive folder: http://sdrv.ms/zicbqi please help. in model, have following classes , context class generated mvcscaffolding: using system; using system.collections.generic; using system.linq; using system.web; using system.componentmodel.dataannotations; using system.componentmodel.dataannotations.schema; namespace task3.models { public class tas