Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Upgrading to the latest MVC causes error
Message
 
 
À
24/02/2015 13:50:43
Information générale
Forum:
ASP.NET
Catégorie:
MVC
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01615733
Message ID:
01615793
Vues:
17
>Authentication attribute is irrelevant. It's only looking at {Route] attributes.
>
>IAC, if the method is working (as per previous post) then the route map is probable being created OK and there's no need to remove the MapMvcAtttributeRoutes() call ?

Yes, your other suggestion of changing the base controller's calls seems to be working, e.g. I switched from commented now code to what you suggested and all seems to be well:
  //public PartialViewResult SuccessView<T>(T viewModel, string viewName, string message) where T : BaseEditViewModel
        public PartialViewResult SuccessView(BaseEditViewModel viewModel, string viewName, string message) 
        {
            viewModel.SuccessMessage = message;

            return PartialView(viewName, viewModel);
        }
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform