i am trying to get username and after login redirect to another controller page and i want to show user name on _Layout.cshtml page .
i am using mvc with angular js.
i have done below coding in logincontroller.js
if (varuserid == "userbname" && varpwd == "password") {
//here i need to store username and show on _Layout page.
window.location = "CMRs/CMRInquiry";
}