public ActionResult Create(Cast cast) //(object in parameter), must pass with cshtml "name". ex: castname != name
 {
     _castService.AddCast(cast);
     return(View());
 }
示例#2
0
 //public ActionResult Create(string castname, string profilePath, string gender, string tmdbUrl)
 public ActionResult Create(Cast cast)
 {
     _castService.AddCast(cast);
     return(View());
 }