C# .NET - repository mvc - Asked By Arun Kumar on 17-Apr-14 02:42 PM

HI Manu , 
  I am new to MVC .
Can i get a good MVC Repository Project .? 
I created  some example , but i am facing the problem like ,  i am not able to call create,edit and  update  functionality  in same  View &  also   how i can pass the multiple list from one  View to control ,for example 
one blog have 'n' number of  Comments (1:n). How i can achieve it?

Please Help Me
 
Thanks & Regards
Arun
Sreenath Kalahasti replied to Arun Kumar on 26-Sep-14 06:42 PM
Arun,

You might want to create a single view and if you are using three different buttons for Create, Edit and Delete then you will need to create three different methods in Controller and use Javascript or Jquery to call these methods.

For the second part which is multiple list, you can create a partial view and pass the list object to the partial view.

Thanks,
Sree