Click here to Skip to main content
15,868,073 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have create a model in which have 2 Classes

C#
 public class Movie
    {
        [Required]
        public string Title { get; set; }

        public int Rating { get; set; }
    }

public class User
   {
       public int? Id { get; set; }

       [Required]
       public string Name { get; set; }

       public IList<Movie> FavouriteMovies { get; set; }
   }


I have create a view for the User and there movies that can update the user. and save it but when i am saving it then in post action result have found the FavouriteMovies is null. then pls suggest me how to solve it.. thanks


[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 9-May-13 2:08am
v2
Comments
OriginalGriff 9-May-13 8:09am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
Jameel VM 13-May-13 11:31am    
please post the view code and the action result

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900