-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);
--------------------------------------------------------------------------------
/Startup.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.Owin;
2 | using Owin;
3 |
4 | [assembly: OwinStartupAttribute(typeof(A2_HTML5_Biz_App_New.Startup))]
5 | namespace A2_HTML5_Biz_App_New
6 | {
7 | public partial class Startup
8 | {
9 | public void Configuration(IAppBuilder app)
10 | {
11 | ConfigureAuth(app);
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/Views/Account/ExternalLoginConfirmation.cshtml:
--------------------------------------------------------------------------------
1 | @model A2_HTML5_Biz_App_New.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 |
--------------------------------------------------------------------------------
/Views/Account/ExternalLoginFailure.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Login Failure";
3 | }
4 |
5 |
6 | @ViewBag.Title.
7 | Unsuccessful login with service.
8 |
9 |
--------------------------------------------------------------------------------
/Views/Account/ForgotPassword.cshtml:
--------------------------------------------------------------------------------
1 | @model A2_HTML5_Biz_App_New.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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/Views/Account/Login.cshtml:
--------------------------------------------------------------------------------
1 | @using A2_HTML5_Biz_App_New.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 | }
--------------------------------------------------------------------------------
/Views/Account/Register.cshtml:
--------------------------------------------------------------------------------
1 | @model A2_HTML5_Biz_App_New.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 |
--------------------------------------------------------------------------------
/Views/Account/ResetPassword.cshtml:
--------------------------------------------------------------------------------
1 | @model A2_HTML5_Biz_App_New.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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/Views/Account/SendCode.cshtml:
--------------------------------------------------------------------------------
1 | @model A2_HTML5_Biz_App_New.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 |
--------------------------------------------------------------------------------
/Views/Account/VerifyCode.cshtml:
--------------------------------------------------------------------------------
1 | @model A2_HTML5_Biz_App_New.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 |
--------------------------------------------------------------------------------
/Views/Account/_ChangePasswordPartial.cshtml:
--------------------------------------------------------------------------------
1 | @using A2_HTML5_Biz_App_New.Models
2 | @model Microsoft.AspNet.Identity.ManageUserViewModel
3 |
4 | @using (Html.BeginForm("Manage", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
5 | {
6 | @Html.AntiForgeryToken()
7 | Change Password Form
8 |
9 | @Html.ValidationSummary("", new { @class = "text-danger" })
10 |
16 |
22 |
28 |
29 |
34 | }
35 |
--------------------------------------------------------------------------------
/Views/Account/_ExternalLoginsListPartial.cshtml:
--------------------------------------------------------------------------------
1 | @model A2_HTML5_Biz_App_New.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 |
--------------------------------------------------------------------------------
/Views/Account/_RemoveAccountPartial.cshtml:
--------------------------------------------------------------------------------
1 | @model ICollection
2 |
3 | @if (Model.Count > 0)
4 | {
5 | Registered Logins
6 |
34 | }
35 |
--------------------------------------------------------------------------------
/Views/Account/_SetPasswordPartial.cshtml:
--------------------------------------------------------------------------------
1 | @model A2_HTML5_Biz_App_New.Models.ManageUserViewModel
2 |
3 | @using (Html.BeginForm("Manage", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
4 | {
5 |
6 | You do not have a local username/password for this site. Add a local
7 | account so you can log in without an external login.
8 |
9 | @Html.AntiForgeryToken()
10 |
11 | Create Local Login
12 |
13 | @Html.ValidationSummary("", new { @class = "text-danger" })
14 |
20 |
26 |
31 | }
32 |
--------------------------------------------------------------------------------
/Views/Agent/Index.cshtml:
--------------------------------------------------------------------------------
1 |
2 | @{
3 | ViewBag.Title = "Index";
4 | }
5 |
6 |
7 |
8 |
9 | Index
10 |
120 |
121 |
122 |
--------------------------------------------------------------------------------
/Views/Customer/Index.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Index";
3 | }
4 |
5 | Index
6 |
7 |
8 |
9 |
10 |
11 |
19 |
20 |
96 |
97 | @Html.ActionLink("Continue to Search Property", "SearchProperties",
98 | "Customer")
99 |
100 |
101 |
102 |
--------------------------------------------------------------------------------
/Views/Customer/SearchProperties.cshtml:
--------------------------------------------------------------------------------
1 |
2 | @{
3 | ViewBag.Title = "SearchProperties";
4 | }
5 |
6 |
41 |
42 |
43 |
44 |
45 | Search Properties Available for Sale or Rent
46 |
47 |
48 |
49 |
50 |
51 | Property Type
52 | |
53 | |
54 |
55 | Status
56 | |
57 |
58 |
59 |
60 |
62 | |
63 |
64 |
66 | |
67 |
68 |
70 | |
71 |
72 |
73 |
75 |
76 |
77 |
78 |
79 | Property Id |
80 | Owner Name |
81 | Primary Contact |
82 | Secondary Contact |
83 | Email |
84 | Property Type |
85 | Address |
86 | No. of BedRooms |
87 | Total Rooms |
88 | Build up Area |
89 | Sale Rent Status |
90 | Available Status |
91 |
92 |
93 |
94 |
95 |
96 |
97 | |
98 |
99 |
100 | |
101 |
102 |
103 | |
104 |
105 |
106 | |
107 |
108 |
109 | |
110 |
111 |
112 | |
113 |
114 |
115 | |
116 |
117 |
118 | |
119 |
120 |
121 | |
122 |
123 |
124 | |
125 |
126 |
127 | |
128 |
129 |
130 | |
131 |
132 |
133 |
134 |
135 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/Views/Home/Index.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Property Manager Home Page";
3 | }
4 |
5 |
6 |
Property Information Portal
7 | The Unique Portal for Owners and Customers
8 |
9 |
10 |
11 |
12 |
Please @Html.ActionLink("Login","Login","Account") with your User Role Type.
13 | If you are New User then please @Html.ActionLink("Register", "Register", "Account") and select your user role as Owner and Customer
14 |
--------------------------------------------------------------------------------
/Views/Manage/AddPhoneNumber.cshtml:
--------------------------------------------------------------------------------
1 | @model A2_HTML5_Biz_App_New.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 |
--------------------------------------------------------------------------------
/Views/Manage/ChangePassword.cshtml:
--------------------------------------------------------------------------------
1 | @model A2_HTML5_Biz_App_New.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 | }
--------------------------------------------------------------------------------
/Views/Manage/Index.cshtml:
--------------------------------------------------------------------------------
1 | @model A2_HTML5_Biz_App_New.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 |
65 |
69 | }
70 | else
71 | {
72 |
73 |
77 | }*@
78 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/Views/Manage/ManageLogins.cshtml:
--------------------------------------------------------------------------------
1 | @model A2_HTML5_Biz_App_New.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 | @if (Model.CurrentLogins.Count > 0)
11 | {
12 | Registered Logins
13 |
41 | }
42 | @if (Model.OtherLogins.Count > 0)
43 | {
44 | Add another service to log in.
45 |
46 | using (Html.BeginForm("LinkLogin", "Manage"))
47 | {
48 | @Html.AntiForgeryToken()
49 |
50 |
51 | @foreach (AuthenticationDescription p in Model.OtherLogins)
52 | {
53 |
54 | }
55 |
56 |
57 | }
58 | }
59 |
60 |
--------------------------------------------------------------------------------
/Views/Manage/SetPassword.cshtml:
--------------------------------------------------------------------------------
1 | @model A2_HTML5_Biz_App_New.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 | }
--------------------------------------------------------------------------------
/Views/Manage/VerifyPhoneNumber.cshtml:
--------------------------------------------------------------------------------
1 | @model A2_HTML5_Biz_App_New.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 |
--------------------------------------------------------------------------------
/Views/Owner/Index.cshtml:
--------------------------------------------------------------------------------
1 |
2 | @{
3 | ViewBag.Title = "Index";
4 | }
5 |
6 | Index
7 |
8 |
9 |
10 |
18 |
19 |
20 |
21 |
22 |
95 |
96 | @Html.ActionLink("Continue to Register Property", "Index",
97 | "OwnerPropertyDescription")
98 |
99 |
100 |
101 |
102 |
103 |
--------------------------------------------------------------------------------
/Views/OwnerPropertyDescription/Index.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Index";
3 | }
4 |
23 |
24 |
25 |
26 |
27 |
35 |
36 |
37 |
38 |
39 | Index
40 |
41 |
42 |
43 |
44 |
45 |
46 | Property No
47 | |
48 |
49 | The Property Type
50 | |
51 |
52 | Address
53 | |
54 |
55 | No of Bedrooms
56 | |
57 |
58 | Total Rooms
59 | |
60 |
61 | Buildup Area
62 | |
63 |
64 | Description
65 | |
66 |
67 | Property Status
68 | |
69 |
70 | Cost
71 | |
72 |
73 | Property Age
74 | |
75 |
76 | Status
77 | |
78 |
79 | Registration Date
80 | |
81 |
82 |
83 |
84 |
85 |
86 |
87 | |
88 |
89 |
90 | |
91 |
92 |
93 | |
94 |
95 |
96 | |
97 |
98 |
99 | |
100 |
101 |
102 | |
103 |
104 |
105 | |
106 |
107 |
108 | |
109 |
110 |
111 | |
112 |
113 |
114 | |
115 |
116 |
117 | |
118 |
119 |
120 | |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
246 |
247 |
--------------------------------------------------------------------------------
/Views/Role/AssignUserToRole.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Assign Users to Role";
3 | }
4 |
5 |
6 | Assign Users to Role
7 |
8 |
9 |
10 | @Html.ActionLink("Create New Role", "Create")
11 | |
12 |
13 | @Html.ActionLink("Assign User to Role", "AssignUserToRole")
14 | |
15 |
16 |
17 |
18 |
19 | Role Add to User
20 | @using (Html.BeginForm("UserAddToRole", "Role"))
21 | {
22 | @Html.AntiForgeryToken()
23 | @Html.ValidationSummary(true)
24 |
25 |
26 | Username : @Html.Editor("UserName")
27 | Role Name: @Html.DropDownList("RoleName", (
28 | IEnumerable)ViewBag.Roles, "Select Role")
29 |
30 |
31 |
32 | }
33 |
34 |
--------------------------------------------------------------------------------
/Views/Role/Create.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Create";
3 | }
4 | Create Role
5 | @Html.ActionLink("Available Roles", "Index") | @Html.ActionLink("Manage User In Role", "AssignUserToRole")
6 |
7 | @using (Html.BeginForm())
8 | {
9 | @Html.AntiForgeryToken()
10 | @Html.ValidationSummary(true)
11 |
12 |
13 | Role Name:
14 |
15 |
16 | @Html.Editor("RoleName")
17 | @*@Html.TextBox("RoleName")*@
18 |
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/Views/Role/Index.cshtml:
--------------------------------------------------------------------------------
1 | @model IEnumerable
2 | @{
3 | ViewBag.Title = "Index";
4 | }
5 |
6 |
7 | Index
8 |
9 |
10 |
11 | @Html.ActionLink("Create New Role", "Create")
12 | |
13 |
14 | @Html.ActionLink("Manage User In Role", "AssignUserToRole")
15 | |
16 |
17 |
18 |
19 |
20 |
21 |
22 | @foreach (var role in Model)
23 | {
24 |
25 |
26 | @role.Name
27 | |
28 |
29 | @Html.ActionLink("Edit", "Edit", new { roleName = @role.Name })
30 | |
31 |
32 | }
33 |
34 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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("Customer", "Index", "Customer")
26 | - @Html.ActionLink("Owner", "Index", "Owner")
27 | - @Html.ActionLink("About", "About", "Home")
28 | - @Html.ActionLink("Contact", "Contact", "Home")
29 |
30 |
31 | @Html.Partial("_LoginPartial")
32 |
33 |
34 |
35 |
36 | @RenderBody()
37 |
38 |
41 |
42 |
43 | @Scripts.Render("~/bundles/jquery")
44 | @Scripts.Render("~/bundles/bootstrap")
45 | @RenderSection("scripts", required: false)
46 |
47 |
48 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "~/Views/Shared/_Layout.cshtml";
3 | }
4 |
--------------------------------------------------------------------------------
/Web.Debug.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/Web.Release.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
19 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/html5-mvc-business-app/686a23b0eb02adaa922c4956e321170bd12d07d4/favicon.ico
--------------------------------------------------------------------------------
/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/html5-mvc-business-app/686a23b0eb02adaa922c4956e321170bd12d07d4/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/html5-mvc-business-app/686a23b0eb02adaa922c4956e321170bd12d07d4/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/html5-mvc-business-app/686a23b0eb02adaa922c4956e321170bd12d07d4/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/html5-mvc-business-app/686a23b0eb02adaa922c4956e321170bd12d07d4/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/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 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------