I Have a Table that contains different color of themes and I have define the _Layouts and css, I have apply the css to the their respectful layout.
e.g _LayoutBlue _LayoutGreen
I want to Check using a switch statement that when a user logins before rendering the view it should check the theme colour ID the user Choosed while creating an account and Apply to the User View
the question is, Is it Possible for me to do that from the Login controller so as to control the rendering layout based on the user theme colour in the database table
e.g is
switch(ThemeID)
{
case 1:
Layout = "~/Views/Shared/_BlueLayout.cshtml";
break;
case 2:
Layout = "~/Views/Shared/_MagentaLayout.cshtml";
break;
default:
Layout = "~/Views/Shared/_Layout.cshtml";
break;
}