-
Notifications
You must be signed in to change notification settings - Fork 10
Dotnetwebapi #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
abharana24
wants to merge
12
commits into
cybergroupdevs:master
Choose a base branch
from
abharana24:dotnetwebapi
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Dotnetwebapi #29
Changes from 5 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
8837be3
webapi and UI for Users
abharana24 257e732
Added backend functionalities
abharana24 bacb911
rendering dynamic data on basis of user roles on loading of page afte…
abharana24 a16973c
removed unwanted code
abharana24 fb75b31
changed dependency injections
abharana24 5aa9264
connected to mongoose db,performed CRUD operations,segregated files a…
abharana24 7ba54e9
Revert "connected to mongoose db,performed CRUD operations,segregated…
abharana24 9f44191
Revert "Revert "connected to mongoose db,performed CRUD operations,se…
abharana24 f13b469
removed unwanted code,implemented role based authentication,defined c…
abharana24 f2e60e7
unused controller removed
abharana24 c2b2141
Revert "unused controller removed"
abharana24 6e655c6
unused controller removed
abharana24 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <meta charset='utf-8'> | ||
| <meta http-equiv='X-UA-Compatible' content='IE=edge'> | ||
| <title>Page Title</title> | ||
| <meta name='viewport' content='width=device-width, initial-scale=1'> | ||
| <!--Bootsrap 4 CDN--> | ||
| <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> | ||
|
|
||
| <!--Fontawesome CDN--> | ||
| <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous"> | ||
| <script | ||
| src="https://code.jquery.com/jquery-3.4.1.min.js" | ||
| integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" | ||
| crossorigin="anonymous"></script> | ||
| <link rel='stylesheet' type='text/css' media='screen' href='../styles/adminstyle.css'> | ||
| <!----> | ||
| </head> | ||
| <body> | ||
| <header> | ||
| <div class="container bg-info p-5 "> | ||
| <nav class="navbar navbar-expand-lg navbar-light bg-light"> | ||
| <a class="navbar-brand" href="#">WELCOME</a> | ||
| <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation"> | ||
| <span class="navbar-toggler-icon"></span> | ||
| </button> | ||
| <div class="collapse navbar-collapse" id="navbarNavAltMarkup"> | ||
| <div class="navbar-nav"> | ||
| <a class="btn btn-outline-success my-2 my-sm-0" id="profile">My Profile <span class="sr-only">(current)</span></a> | ||
| <div class="form-inline my-2 my-lg-0"> | ||
| <button class="btn btn-outline-success my-2 my-sm-0" id="logOut">Log Out</button> | ||
| </div> | ||
| </div> | ||
| </nav> | ||
| </div> | ||
| </header> | ||
|
|
||
| <!----> | ||
| <main> | ||
| <div class="container my-5"> | ||
| <div class="card-body text-center"> | ||
| <h4 class="card-title">All Employee Details</h4> | ||
| </div> | ||
| <div class="card"> | ||
| <button id="add__new__list" type="button" class="btn btn-success position-relative " data-toggle="modal" data-target="#myModal"><i class="fas fa-plus"></i> Add User</button> | ||
| <button id="update" type="button" class="btn btn-primary position-relative " data-toggle="modal" data-target=".bd-example-modal-lg"><i class="fas "></i> Update User</button> | ||
| <button id="delete" type="button" class="btn btn-danger position-relative " data-toggle="modal" data-target=".bd-example-modal-lg"><i class="fas"></i> Delete User</button> | ||
| <table id="empTable" class="table-striped table-hover .table-responsive"> | ||
|
|
||
| <thead> | ||
| <tr> | ||
| <th scope="col">S.no</th> | ||
| <th scope="col">Name</th> | ||
| <th scope="col">UserName</th> | ||
| <th scope="col">Phone</th> | ||
| <th scope="col">Role</th> | ||
| <th scope="col">Email</th> | ||
| <th scope="col">Address</th> | ||
| <th scope="col">Project</th> | ||
| </tr> | ||
| </thead> | ||
| </table> | ||
| </div> | ||
| </form> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </main> | ||
| <footer > | ||
| <div class="container bg-info p-5"> | ||
| </div> | ||
| </footer> | ||
| <script src='../scripts/adminsc.js'></script> | ||
| </body> | ||
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title>Login Page</title> | ||
| <!--Bootsrap 4 CDN--> | ||
| <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> | ||
|
|
||
| <!--Fontawesome CDN--> | ||
| <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous"> | ||
| <link rel="stylesheet" type="text/css" href="../styles/s1.css" > | ||
| <script | ||
| src="https://code.jquery.com/jquery-3.4.1.min.js" | ||
| integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" | ||
| crossorigin="anonymous"></script> | ||
|
|
||
| </head> | ||
| <body> | ||
| <div class="container"> | ||
| <div class="d-flex justify-content-center h-100"> | ||
| <div class="card"> | ||
| <div class="card-header"> | ||
| <h3>Member Log In</h3> | ||
| </div> | ||
| <div class="card-body"> | ||
| <form> | ||
| <div class="input-group form-group"> | ||
| <div class="input-group-prepend"> | ||
| <span class="input-group-text"><i class="fas fa-user"></i></span> | ||
| </div> | ||
| <input id="Username" type="text" class="form-control" placeholder="username"> | ||
|
|
||
| </div> | ||
| <div class="input-group form-group"> | ||
| <div class="input-group-prepend"> | ||
| <span class="input-group-text"><i class="fas fa-key"></i></span> | ||
| </div> | ||
| <input id="Password" type="password" class="form-control" placeholder="password"> | ||
| </div> | ||
| <div class="form-group"> | ||
| <input type="button" id="btn" value="Login" class="btn btn-block login_btn" > | ||
| </div> | ||
| </form> | ||
| </div> | ||
| <div class="card-footer"> | ||
| <div class="d-flex justify-content-center links"> | ||
| Don't have an account?<a href="signup.html">Sign Up</a> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <script src="../scripts/sc1.js"></script> | ||
| </body> | ||
| </html> | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <meta charset='utf-8'> | ||
| <meta http-equiv='X-UA-Compatible' content='IE=edge'> | ||
| <title>Page Title</title> | ||
| <meta name='viewport' content='width=device-width, initial-scale=1'> | ||
| <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> | ||
| <link rel='stylesheet' type='text/css' media='screen' href='../styles/adminstyle.css'> | ||
| <script | ||
| src="https://code.jquery.com/jquery-2.2.4.min.js" | ||
| integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" | ||
| crossorigin="anonymous"></script> | ||
| <script src='../scripts/profile.js'></script> | ||
| </head> | ||
| <body> | ||
| <table id="userdata"> | ||
| <tr> | ||
| <th>Username</th> | ||
| <th>Name</th> | ||
| <th>Email</th> | ||
| <th>Role</th> | ||
| </tr> | ||
| </table> | ||
|
|
||
| </body> | ||
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,133 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <meta charset='utf-8'> | ||
| <meta http-equiv='X-UA-Compatible' content='IE=edge'> | ||
| <title>Page Title</title> | ||
| <meta name='viewport' content='width=device-width, initial-scale=1'> | ||
| <!-- Latest compiled and minified CSS --> | ||
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> | ||
|
|
||
| <!-- jQuery library --> | ||
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> | ||
|
|
||
| <!-- Latest compiled JavaScript --> | ||
| <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> | ||
| <link rel='stylesheet' type='text/css' media='screen' href='../styles/style.css'> | ||
|
|
||
| </head> | ||
| <body> | ||
|
|
||
|
|
||
| <div class="container"> | ||
|
|
||
| <form class="well form-horizontal" action=" " method="post" id="contact_form"> | ||
| <fieldset> | ||
|
|
||
| <!-- Form Name --> | ||
| <legend><center><h2><b>Registration Form</b></h2></center></legend><br> | ||
|
|
||
| <!-- Text input--> | ||
|
|
||
| <div class="form-group"> | ||
| <label class="col-md-4 control-label">Name</label> | ||
| <div class="col-md-4 inputGroupContainer"> | ||
| <div class="input-group"> | ||
| <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span> | ||
| <input id="name" name="Name" placeholder="Name" class="form-control" type="text"> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- Text input--> | ||
|
|
||
| <div class="form-group"> | ||
| <label class="col-md-4 control-label">Username</label> | ||
| <div class="col-md-4 inputGroupContainer"> | ||
| <div class="input-group"> | ||
| <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span> | ||
| <input id="uname" name="user_name" placeholder="Username" class="form-control" type="text"> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- Text input--> | ||
|
|
||
| <div class="form-group"> | ||
| <label class="col-md-4 control-label" >Password</label> | ||
| <div class="col-md-4 inputGroupContainer"> | ||
| <div class="input-group"> | ||
| <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span> | ||
| <input id="pass" name="user_password" placeholder="Password" class="form-control" type="password"> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- Text input | ||
|
|
||
| <div class="form-group"> | ||
| <label class="col-md-4 control-label" >Confirm Password</label> | ||
| <div class="col-md-4 inputGroupContainer"> | ||
| <div class="input-group"> | ||
| <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span> | ||
| <input name="confirm_password" placeholder="Confirm Password" class="form-control" type="password"> | ||
| </div> | ||
| </div> | ||
| </div>--> | ||
|
|
||
| <!-- Text input--> | ||
| <div class="form-group"> | ||
| <label class="col-md-4 control-label">E-Mail</label> | ||
| <div class="col-md-4 inputGroupContainer"> | ||
| <div class="input-group"> | ||
| <span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span> | ||
| <input id="email" name="email" placeholder="E-Mail Address" class="form-control" type="text"> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
|
|
||
| <!-- Text input--> | ||
|
|
||
| <div class="form-group"> | ||
| <label class="col-md-4 control-label">Contact No.</label> | ||
| <div class="col-md-4 inputGroupContainer"> | ||
| <div class="input-group"> | ||
| <span class="input-group-addon"><i class="glyphicon glyphicon-earphone"></i></span> | ||
| <input id="num" name="contact_no" placeholder="Mobile Number" class="form-control" type="text"> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- Text input--> | ||
|
|
||
| <div class="form-group"> | ||
| <label class="col-md-4 control-label">Address</label> | ||
| <div class="col-md-4 inputGroupContainer"> | ||
| <div class="input-group"> | ||
| <span class="input-group-addon"><i class="glyphicon glyphicon-home"></i></span> | ||
| <input id="add" name="Address" placeholder="Address" class="form-control" type="text"> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- Select Basic --> | ||
|
|
||
| <!-- Success message --> | ||
| <div class="alert alert-success" role="alert" id="success_message">Success<i class="glyphicon glyphicon-thumbs-up"></i> Success!.</div> | ||
|
|
||
| <!-- Button --> | ||
| <div class="form-group"> | ||
| <label class="col-md-4 control-label"></label> | ||
| <div class="col-md-4"><br> | ||
|               <input type="button" id="btn" class="btn btn-warning" value="SUBMIT" onclick="Postdata()">                </input> | ||
| </div> | ||
| </div> | ||
|
|
||
| </fieldset> | ||
| </form> | ||
| </div> | ||
| </div> | ||
| <script src='../scripts/script.js'></script> | ||
| </body> | ||
| </html> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented code removed.