-1?(p||v()):1)}if(!!J){J=parseFloat(J)*(J.indexOf(y)>-1?(p||v()):1)}if(!K.hasquery||(!A||!L)&&(A||H>=C)&&(L||H<=J)){if(!D[K.media]){D[K.media]=[]}D[K.media].push(k[K.rules])}}for(var E in q){if(q[E]&&q[E].parentNode===f){f.removeChild(q[E])}}for(var E in D){var M=w.createElement("style"),F=D[E].join("\n");M.type="text/css";M.media=E;f.insertBefore(M,G.nextSibling);if(M.styleSheet){M.styleSheet.cssText=F}else{M.appendChild(w.createTextNode(F))}q.push(M)}},n=function(x,z){var y=c();if(!y){return}y.open("GET",x,true);y.onreadystatechange=function(){if(y.readyState!=4||y.status!=200&&y.status!=304){return}z(y.responseText)};if(y.readyState==4){return}y.send(null)},c=(function(){var x=false;try{x=new XMLHttpRequest()}catch(y){x=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return x}})();a();respond.update=a;function t(){j(true)}if(e.addEventListener){e.addEventListener("resize",t,false)}else{if(e.attachEvent){e.attachEvent("onresize",t)}}})(this);
--------------------------------------------------------------------------------
/A11_RBS/Startup.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.Owin;
2 | using Owin;
3 |
4 | [assembly: OwinStartupAttribute(typeof(A11_RBS.Startup))]
5 | namespace A11_RBS
6 | {
7 | public partial class Startup
8 | {
9 | public void Configuration(IAppBuilder app)
10 | {
11 | ConfigureAuth(app);
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Account/ConfirmEmail.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Confirm Email";
3 | }
4 |
5 | @ViewBag.Title.
6 |
7 |
8 | Thank you for confirming your email. Please @Html.ActionLink("Click here to Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })
9 |
10 |
11 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Account/ExternalLoginConfirmation.cshtml:
--------------------------------------------------------------------------------
1 | @model A11_RBS.Models.ExternalLoginConfirmationViewModel
2 | @{
3 | ViewBag.Title = "Register";
4 | }
5 | @ViewBag.Title.
6 | Associate your @ViewBag.LoginProvider account.
7 |
8 | @using (Html.BeginForm("ExternalLoginConfirmation", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
9 | {
10 | @Html.AntiForgeryToken()
11 |
12 | Association Form
13 |
14 | @Html.ValidationSummary(true, "", new { @class = "text-danger" })
15 |
16 | You've successfully authenticated with @ViewBag.LoginProvider.
17 | Please enter a user name for this site below and click the Register button to finish
18 | logging in.
19 |
20 |
27 |
32 | }
33 |
34 | @section Scripts {
35 | @Scripts.Render("~/bundles/jqueryval")
36 | }
37 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Account/ExternalLoginFailure.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Login Failure";
3 | }
4 |
5 |
6 | @ViewBag.Title.
7 | Unsuccessful login with service.
8 |
9 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Account/ForgotPassword.cshtml:
--------------------------------------------------------------------------------
1 | @model A11_RBS.Models.ForgotPasswordViewModel
2 | @{
3 | ViewBag.Title = "Forgot your password?";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | @using (Html.BeginForm("ForgotPassword", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
9 | {
10 | @Html.AntiForgeryToken()
11 | Enter your email.
12 |
13 | @Html.ValidationSummary("", new { @class = "text-danger" })
14 |
20 |
25 | }
26 |
27 | @section Scripts {
28 | @Scripts.Render("~/bundles/jqueryval")
29 | }
30 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Account/ForgotPasswordConfirmation.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Forgot Password Confirmation";
3 | }
4 |
5 |
6 | @ViewBag.Title.
7 |
8 |
9 |
10 | Please check your email to reset your password.
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Account/Login.cshtml:
--------------------------------------------------------------------------------
1 | @using A11_RBS.Models
2 | @model LoginViewModel
3 | @{
4 | ViewBag.Title = "Log in";
5 | }
6 |
7 | @ViewBag.Title.
8 |
60 |
61 | @section Scripts {
62 | @Scripts.Render("~/bundles/jqueryval")
63 | }
--------------------------------------------------------------------------------
/A11_RBS/Views/Account/Register.cshtml:
--------------------------------------------------------------------------------
1 | @model A11_RBS.Models.RegisterViewModel
2 | @{
3 | ViewBag.Title = "Register";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | @using (Html.BeginForm("Register", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
9 | {
10 | @Html.AntiForgeryToken()
11 | Create a new account.
12 |
13 | @Html.ValidationSummary("", new { @class = "text-danger" })
14 |
20 |
26 |
32 |
33 |
39 |
40 |
41 |
46 | }
47 |
48 | @section Scripts {
49 | @Scripts.Render("~/bundles/jqueryval")
50 | }
51 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Account/ResetPassword.cshtml:
--------------------------------------------------------------------------------
1 | @model A11_RBS.Models.ResetPasswordViewModel
2 | @{
3 | ViewBag.Title = "Reset password";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | @using (Html.BeginForm("ResetPassword", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
9 | {
10 | @Html.AntiForgeryToken()
11 | Reset your password.
12 |
13 | @Html.ValidationSummary("", new { @class = "text-danger" })
14 | @Html.HiddenFor(model => model.Code)
15 |
21 |
27 |
33 |
38 | }
39 |
40 | @section Scripts {
41 | @Scripts.Render("~/bundles/jqueryval")
42 | }
43 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Account/ResetPasswordConfirmation.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Reset password confirmation";
3 | }
4 |
5 |
6 | @ViewBag.Title.
7 |
8 |
9 |
10 | Your password has been reset. Please @Html.ActionLink("click here to log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })
11 |
12 |
13 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Account/SendCode.cshtml:
--------------------------------------------------------------------------------
1 | @model A11_RBS.Models.SendCodeViewModel
2 | @{
3 | ViewBag.Title = "Send";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | @using (Html.BeginForm("SendCode", "Account", new { ReturnUrl = Model.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" })) {
9 | @Html.AntiForgeryToken()
10 | @Html.Hidden("rememberMe", @Model.RememberMe)
11 | Send verification code
12 |
13 |
14 |
15 | Select Two-Factor Authentication Provider:
16 | @Html.DropDownListFor(model => model.SelectedProvider, Model.Providers)
17 |
18 |
19 |
20 | }
21 |
22 | @section Scripts {
23 | @Scripts.Render("~/bundles/jqueryval")
24 | }
25 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Account/VerifyCode.cshtml:
--------------------------------------------------------------------------------
1 | @model A11_RBS.Models.VerifyCodeViewModel
2 | @{
3 | ViewBag.Title = "Verify";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | @using (Html.BeginForm("VerifyCode", "Account", new { ReturnUrl = Model.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" })) {
9 | @Html.AntiForgeryToken()
10 | @Html.Hidden("provider", @Model.Provider)
11 | @Html.Hidden("rememberMe", @Model.RememberMe)
12 | Enter verification code
13 |
14 | @Html.ValidationSummary("", new { @class = "text-danger" })
15 |
21 |
29 |
34 | }
35 |
36 | @section Scripts {
37 | @Scripts.Render("~/bundles/jqueryval")
38 | }
39 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Account/_ExternalLoginsListPartial.cshtml:
--------------------------------------------------------------------------------
1 | @model A11_RBS.Models.ExternalLoginListViewModel
2 | @using Microsoft.Owin.Security
3 |
4 | Use another service to log in.
5 |
6 | @{
7 | var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes();
8 | if (loginProviders.Count() == 0) {
9 |
10 |
11 | There are no external authentication services configured. See this article
12 | for details on setting up this ASP.NET application to support logging in via external services.
13 |
14 |
15 | }
16 | else {
17 | using (Html.BeginForm("ExternalLogin", "Account", new { ReturnUrl = Model.ReturnUrl })) {
18 | @Html.AntiForgeryToken()
19 |
20 |
21 | @foreach (AuthenticationDescription p in loginProviders) {
22 |
23 | }
24 |
25 |
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Home/About.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "About";
3 | }
4 | @ViewBag.Title.
5 | @ViewBag.Message
6 |
7 | Use this area to provide additional information.
8 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Home/Contact.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Contact";
3 | }
4 | @ViewBag.Title.
5 | @ViewBag.Message
6 |
7 |
8 | One Microsoft Way
9 | Redmond, WA 98052-6399
10 | P:
11 | 425.555.0100
12 |
13 |
14 |
15 | Support: Support@example.com
16 | Marketing: Marketing@example.com
17 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Home/Index.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Home Page";
3 | }
4 |
5 |
6 |
ASP.NET
7 |
ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.
8 |
Learn more »
9 |
10 |
11 |
12 |
13 |
Getting started
14 |
15 | ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that
16 | enables a clean separation of concerns and gives you full control over markup
17 | for enjoyable, agile development.
18 |
19 |
Learn more »
20 |
21 |
22 |
Get more libraries
23 |
NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.
24 |
Learn more »
25 |
26 |
27 |
Web Hosting
28 |
You can easily find a web hosting company that offers the right mix of features and price for your applications.
29 |
Learn more »
30 |
31 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Manage/AddPhoneNumber.cshtml:
--------------------------------------------------------------------------------
1 | @model A11_RBS.Models.AddPhoneNumberViewModel
2 | @{
3 | ViewBag.Title = "Phone Number";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | @using (Html.BeginForm("AddPhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
9 | {
10 | @Html.AntiForgeryToken()
11 | Add a phone number
12 |
13 | @Html.ValidationSummary("", new { @class = "text-danger" })
14 |
20 |
25 | }
26 |
27 | @section Scripts {
28 | @Scripts.Render("~/bundles/jqueryval")
29 | }
30 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Manage/ChangePassword.cshtml:
--------------------------------------------------------------------------------
1 | @model A11_RBS.Models.ChangePasswordViewModel
2 | @{
3 | ViewBag.Title = "Change Password";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | @using (Html.BeginForm("ChangePassword", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
9 | {
10 | @Html.AntiForgeryToken()
11 | Change Password Form
12 |
13 | @Html.ValidationSummary("", new { @class = "text-danger" })
14 |
20 |
26 |
32 |
37 | }
38 | @section Scripts {
39 | @Scripts.Render("~/bundles/jqueryval")
40 | }
--------------------------------------------------------------------------------
/A11_RBS/Views/Manage/Index.cshtml:
--------------------------------------------------------------------------------
1 | @model A11_RBS.Models.IndexViewModel
2 | @{
3 | ViewBag.Title = "Manage";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | @ViewBag.StatusMessage
9 |
10 |
Change your account settings
11 |
12 |
13 | - Password:
14 | -
15 | [
16 | @if (Model.HasPassword)
17 | {
18 | @Html.ActionLink("Change your password", "ChangePassword")
19 | }
20 | else
21 | {
22 | @Html.ActionLink("Create", "SetPassword")
23 | }
24 | ]
25 |
26 | - External Logins:
27 | -
28 | @Model.Logins.Count [
29 | @Html.ActionLink("Manage", "ManageLogins") ]
30 |
31 | @*
32 | Phone Numbers can used as a second factor of verification in a two-factor authentication system.
33 |
34 | See this article
35 | for details on setting up this ASP.NET application to support two-factor authentication using SMS.
36 |
37 | Uncomment the following block after you have set up two-factor authentication
38 | *@
39 | @*
40 | - Phone Number:
41 | -
42 | @(Model.PhoneNumber ?? "None") [
43 | @if (Model.PhoneNumber != null)
44 | {
45 | @Html.ActionLink("Change", "AddPhoneNumber")
46 | @: |
47 | @Html.ActionLink("Remove", "RemovePhoneNumber")
48 | }
49 | else
50 | {
51 | @Html.ActionLink("Add", "AddPhoneNumber")
52 | }
53 | ]
54 |
55 | *@
56 | - Two-Factor Authentication:
57 | -
58 |
59 | There are no two-factor authentication providers configured. See this article
60 | for details on setting up this ASP.NET application to support two-factor authentication.
61 |
62 | @*@if (Model.TwoFactor)
63 | {
64 | using (Html.BeginForm("DisableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
65 | {
66 | @Html.AntiForgeryToken()
67 | Enabled
68 |
69 |
70 | }
71 | }
72 | else
73 | {
74 | using (Html.BeginForm("EnableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
75 | {
76 | @Html.AntiForgeryToken()
77 | Disabled
78 |
79 |
80 | }
81 | }*@
82 |
83 |
84 |
85 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Manage/ManageLogins.cshtml:
--------------------------------------------------------------------------------
1 | @model A11_RBS.Models.ManageLoginsViewModel
2 | @using Microsoft.Owin.Security
3 | @{
4 | ViewBag.Title = "Manage your external logins";
5 | }
6 |
7 | @ViewBag.Title.
8 |
9 | @ViewBag.StatusMessage
10 | @{
11 | var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes();
12 | if (loginProviders.Count() == 0) {
13 |
14 |
15 | There are no external authentication services configured. See this article
16 | for details on setting up this ASP.NET application to support logging in via external services.
17 |
18 |
19 | }
20 | else
21 | {
22 | if (Model.CurrentLogins.Count > 0)
23 | {
24 | Registered Logins
25 |
53 | }
54 | if (Model.OtherLogins.Count > 0)
55 | {
56 | using (Html.BeginForm("LinkLogin", "Manage"))
57 | {
58 | @Html.AntiForgeryToken()
59 |
60 |
61 | @foreach (AuthenticationDescription p in Model.OtherLogins)
62 | {
63 |
64 | }
65 |
66 |
67 | }
68 | }
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Manage/SetPassword.cshtml:
--------------------------------------------------------------------------------
1 | @model A11_RBS.Models.SetPasswordViewModel
2 | @{
3 | ViewBag.Title = "Create Password";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | You do not have a local username/password for this site. Add a local
9 | account so you can log in without an external login.
10 |
11 |
12 | @using (Html.BeginForm("SetPassword", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
13 | {
14 | @Html.AntiForgeryToken()
15 |
16 | Create Local Login
17 |
18 | @Html.ValidationSummary("", new { @class = "text-danger" })
19 |
25 |
31 |
36 | }
37 | @section Scripts {
38 | @Scripts.Render("~/bundles/jqueryval")
39 | }
--------------------------------------------------------------------------------
/A11_RBS/Views/Manage/VerifyPhoneNumber.cshtml:
--------------------------------------------------------------------------------
1 | @model A11_RBS.Models.VerifyPhoneNumberViewModel
2 | @{
3 | ViewBag.Title = "Verify Phone Number";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | @using (Html.BeginForm("VerifyPhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
9 | {
10 | @Html.AntiForgeryToken()
11 | @Html.Hidden("phoneNumber", @Model.PhoneNumber)
12 | Enter verification code
13 | @ViewBag.Status
14 |
15 | @Html.ValidationSummary("", new { @class = "text-danger" })
16 |
22 |
27 | }
28 |
29 | @section Scripts {
30 | @Scripts.Render("~/bundles/jqueryval")
31 | }
32 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Product/Create.cshtml:
--------------------------------------------------------------------------------
1 | @model A11_RBS.Models.ProductMaster
2 |
3 | @{
4 | ViewBag.Title = "Create";
5 | }
6 |
7 | Create
8 |
9 | @using (Html.BeginForm())
10 | {
11 | @Html.AntiForgeryToken()
12 |
13 |
39 | }
40 |
41 |
42 | @Html.ActionLink("Back to List", "Index")
43 |
44 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Product/Index.cshtml:
--------------------------------------------------------------------------------
1 | @model IEnumerable
2 |
3 | @{
4 | ViewBag.Title = "Index";
5 | }
6 |
7 | Index
8 |
9 |
10 | @Html.ActionLink("Create New", "Create")
11 |
12 |
13 |
14 |
15 | @Html.DisplayNameFor(model => model.ProductId)
16 | |
17 |
18 | @Html.DisplayNameFor(model => model.ProductName)
19 | |
20 |
21 | @Html.DisplayNameFor(model => model.Price)
22 | |
23 | |
24 |
25 |
26 | @foreach (var item in Model) {
27 |
28 |
29 | @Html.DisplayFor(modelItem => item.ProductId)
30 | |
31 |
32 | @Html.DisplayFor(modelItem => item.ProductName)
33 | |
34 |
35 | @Html.DisplayFor(modelItem => item.Price)
36 | |
37 |
38 | }
39 |
40 |
41 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Product/SaleProduct.cshtml:
--------------------------------------------------------------------------------
1 |
2 | @{
3 | ViewBag.Title = "SaleProduct";
4 | }
5 |
6 | Sale Product
7 | @ViewBag.Message
8 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Role/Create.cshtml:
--------------------------------------------------------------------------------
1 | @model Microsoft.AspNet.Identity.EntityFramework.IdentityRole
2 | @{
3 | ViewBag.Title = "Create";
4 | }
5 |
6 | Create
7 |
8 |
13 |
14 |
15 | @using (Html.BeginForm())
16 | {
17 |
18 |
19 | Enter Role Name To be Created: |
20 |
21 | @Html.EditorFor(m => m.Name)
22 | |
23 |
24 |
25 |
26 | }
27 |
28 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Role/Index.cshtml:
--------------------------------------------------------------------------------
1 | @model IEnumerable
2 | @{
3 | ViewBag.Title = "Index";
4 | }
5 |
6 | Available Roles For Application
7 |
8 | @Html.ActionLink("Create Role","Create","Role")
9 |
10 |
15 |
16 |
17 |
18 |
19 | Role Name
20 | |
21 |
22 | @foreach (var item in Model)
23 | {
24 |
25 |
26 | @item.Name
27 | |
28 |
29 | }
30 |
31 |
32 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Role/SetRoleToUser.cshtml:
--------------------------------------------------------------------------------
1 |
2 | @{
3 | ViewBag.Title = "SetRoleToUser";
4 | }
5 |
6 | Set Role for User
7 |
8 |
9 |
10 |
11 | @Html.ActionLink("Create Role", "Create")
12 | |
13 |
14 | @Html.ActionLink("Set Role To User", "SetRoleToUser")
15 | |
16 |
17 |
18 |
19 |
20 | Role Add to User
21 | @using (Html.BeginForm("SetRoleToUser", "Role"))
22 | {
23 | @Html.AntiForgeryToken()
24 | @Html.ValidationSummary(true)
25 |
26 |
27 | Username : @Html.Editor("UserName")
28 | Role Name: @Html.DropDownList("RoleName", (
29 | IEnumerable)ViewBag.Roles, "Select Role")
30 |
31 |
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Shared/AuthorizeFailed.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 | @{
4 | ViewBag.Title = "AuthorizeFailed";
5 | }
6 |
7 | Authorize Failed
8 |
9 | @ViewData["Message"]
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Shared/Error.cshtml:
--------------------------------------------------------------------------------
1 | @model System.Web.Mvc.HandleErrorInfo
2 |
3 | @{
4 | ViewBag.Title = "Error";
5 | }
6 |
7 | Error.
8 | An error occurred while processing your request.
9 |
10 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Shared/Lockout.cshtml:
--------------------------------------------------------------------------------
1 | @model System.Web.Mvc.HandleErrorInfo
2 |
3 | @{
4 | ViewBag.Title = "Locked Out";
5 | }
6 |
7 |
8 | Locked out.
9 | This account has been locked out, please try again later.
10 |
11 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Shared/_Layout.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | @ViewBag.Title - My ASP.NET Application
7 | @Styles.Render("~/Content/css")
8 | @Scripts.Render("~/bundles/modernizr")
9 |
10 |
11 |
12 |
13 |
14 |
22 |
23 |
24 | - @Html.ActionLink("Home", "Index", "Home")
25 | - @Html.ActionLink("About", "About", "Home")
26 | - @Html.ActionLink("Contact", "Contact", "Home")
27 | - @Html.ActionLink("Role", "Index", "Role")
28 | - @Html.ActionLink("All Products", "Index", "Product")
29 | - @Html.ActionLink("New Product", "Create", "Product")
30 | - @Html.ActionLink("Sale Product", "SaleProduct", "Product")
31 |
32 |
33 | @Html.Partial("_LoginPartial")
34 |
35 |
36 |
37 |
38 | @RenderBody()
39 |
40 |
43 |
44 |
45 | @Scripts.Render("~/bundles/jquery")
46 | @Scripts.Render("~/bundles/bootstrap")
47 | @RenderSection("scripts", required: false)
48 |
49 |
50 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Shared/_LoginPartial.cshtml:
--------------------------------------------------------------------------------
1 | @using Microsoft.AspNet.Identity
2 | @if (Request.IsAuthenticated)
3 | {
4 | using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" }))
5 | {
6 | @Html.AntiForgeryToken()
7 |
8 |
9 | -
10 | @Html.ActionLink("Hello " + User.Identity.GetUserName() + "!", "Index", "Manage", routeValues: null, htmlAttributes: new { title = "Manage" })
11 |
12 | - Log off
13 |
14 | }
15 | }
16 | else
17 | {
18 |
19 | - @Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })
20 | - @Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/A11_RBS/Views/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/A11_RBS/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "~/Views/Shared/_Layout.cshtml";
3 | }
4 |
--------------------------------------------------------------------------------
/A11_RBS/Web.Debug.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/A11_RBS/Web.Release.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
19 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/A11_RBS/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
--------------------------------------------------------------------------------
/A11_RBS/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/role-security-mvc5/c02b92d6c93e94d5eddab8628163bdc750e0cacb/A11_RBS/favicon.ico
--------------------------------------------------------------------------------
/A11_RBS/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/role-security-mvc5/c02b92d6c93e94d5eddab8628163bdc750e0cacb/A11_RBS/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/A11_RBS/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/role-security-mvc5/c02b92d6c93e94d5eddab8628163bdc750e0cacb/A11_RBS/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/A11_RBS/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/role-security-mvc5/c02b92d6c93e94d5eddab8628163bdc750e0cacb/A11_RBS/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/A11_RBS/obj/Debug/A11_RBS.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\A11_RBS.dll.config
2 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\A11_RBS.dll
3 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\A11_RBS.pdb
4 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Antlr3.Runtime.dll
5 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\EntityFramework.dll
6 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\EntityFramework.SqlServer.dll
7 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.AspNet.Identity.Core.dll
8 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.AspNet.Identity.EntityFramework.dll
9 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.AspNet.Identity.Owin.dll
10 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.Owin.dll
11 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.Owin.Host.SystemWeb.dll
12 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.Owin.Security.Cookies.dll
13 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.Owin.Security.dll
14 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.Owin.Security.Facebook.dll
15 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.Owin.Security.Google.dll
16 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.Owin.Security.MicrosoftAccount.dll
17 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.Owin.Security.OAuth.dll
18 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.Owin.Security.Twitter.dll
19 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.Web.Infrastructure.dll
20 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Newtonsoft.Json.dll
21 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Owin.dll
22 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\System.Web.Helpers.dll
23 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\System.Web.Mvc.dll
24 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\System.Web.Optimization.dll
25 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\System.Web.Razor.dll
26 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\System.Web.WebPages.Deployment.dll
27 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\System.Web.WebPages.dll
28 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\System.Web.WebPages.Razor.dll
29 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\WebGrease.dll
30 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\System.Web.Helpers.xml
31 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\System.Web.Mvc.xml
32 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\System.Web.Optimization.xml
33 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\System.Web.Razor.xml
34 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\System.Web.WebPages.xml
35 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\System.Web.WebPages.Deployment.xml
36 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\System.Web.WebPages.Razor.xml
37 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Antlr3.Runtime.pdb
38 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Newtonsoft.Json.xml
39 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\EntityFramework.xml
40 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\EntityFramework.SqlServer.xml
41 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.AspNet.Identity.Core.xml
42 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.AspNet.Identity.Owin.xml
43 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.AspNet.Identity.EntityFramework.xml
44 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.Owin.xml
45 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.Owin.Host.SystemWeb.xml
46 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.Owin.Security.xml
47 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.Owin.Security.Facebook.xml
48 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.Owin.Security.Cookies.xml
49 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.Owin.Security.OAuth.xml
50 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.Owin.Security.Google.xml
51 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.Owin.Security.Twitter.xml
52 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\bin\Microsoft.Owin.Security.MicrosoftAccount.xml
53 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\obj\Debug\A11_RBS.csprojResolveAssemblyReference.cache
54 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\obj\Debug\A11_RBS.dll
55 | F:\Mahesh_New\Articles\Jan15\A11_RBS\A11_RBS\obj\Debug\A11_RBS.pdb
56 |
--------------------------------------------------------------------------------
/A11_RBS/obj/Debug/A11_RBS.csprojResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/role-security-mvc5/c02b92d6c93e94d5eddab8628163bdc750e0cacb/A11_RBS/obj/Debug/A11_RBS.csprojResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/A11_RBS/obj/Debug/A11_RBS.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/role-security-mvc5/c02b92d6c93e94d5eddab8628163bdc750e0cacb/A11_RBS/obj/Debug/A11_RBS.dll
--------------------------------------------------------------------------------
/A11_RBS/obj/Debug/A11_RBS.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/role-security-mvc5/c02b92d6c93e94d5eddab8628163bdc750e0cacb/A11_RBS/obj/Debug/A11_RBS.pdb
--------------------------------------------------------------------------------
/A11_RBS/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/role-security-mvc5/c02b92d6c93e94d5eddab8628163bdc750e0cacb/A11_RBS/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/A11_RBS/obj/Debug/TempPE/Models.SuperMarketEDMX.Designer.cs.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/role-security-mvc5/c02b92d6c93e94d5eddab8628163bdc750e0cacb/A11_RBS/obj/Debug/TempPE/Models.SuperMarketEDMX.Designer.cs.dll
--------------------------------------------------------------------------------
/A11_RBS/obj/Debug/TempPE/Models.SuperMarketEDMX.cs.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/role-security-mvc5/c02b92d6c93e94d5eddab8628163bdc750e0cacb/A11_RBS/obj/Debug/TempPE/Models.SuperMarketEDMX.cs.dll
--------------------------------------------------------------------------------
/A11_RBS/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/role-security-mvc5/c02b92d6c93e94d5eddab8628163bdc750e0cacb/A11_RBS/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/A11_RBS/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/role-security-mvc5/c02b92d6c93e94d5eddab8628163bdc750e0cacb/A11_RBS/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/A11_RBS/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/role-security-mvc5/c02b92d6c93e94d5eddab8628163bdc750e0cacb/A11_RBS/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/A11_RBS/obj/Debug/edmxResourcesToEmbed/Models/SuperMarketEDMX.csdl:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/A11_RBS/obj/Debug/edmxResourcesToEmbed/Models/SuperMarketEDMX.msl:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/A11_RBS/obj/Debug/edmxResourcesToEmbed/Models/SuperMarketEDMX.ssdl:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/A11_RBS/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/prd.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE [dbo].[ProductMaster]
2 | (
3 | [ProductId] INT identity PRIMARY KEY,
4 | [ProductName] VARCHAR(50) NOT NULL,
5 | [Price] VARCHAR(50) NOT NULL
6 | )
7 |
--------------------------------------------------------------------------------