Sunday, 15 September 2013

Save Related Data using Entity data

Save Related Data using Entity data

i HAVE AREAs in my project like
Areas Student Controllers StudentController
Views
Shared
ViewProfile
My Route configured is
context.MapRoute( "Student_default", "Student/{controller}/{action}/{id}",
new { action = "Index", id = UrlParameter.Optional }
I am calling views as RedirectToAction("ViewProfile", "Student",new { Area
= "",id = WebSecurity.CurrentUserId});
But Url shows ~/Student/Student/ViewProfile/4
I want url to be ~/Student/ViewProfile/4
can you guide me how can i achive that

No comments:

Post a Comment