Skip to content

Commit

Permalink
ayrı olan silme onay sayfası silindi
Browse files Browse the repository at this point in the history
  • Loading branch information
batuhan çiftçi committed May 19, 2022
1 parent 1c98d58 commit cf066a7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 85 deletions.
1 change: 0 additions & 1 deletion UserManagement/UserManagement.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@
<Content Include="Views\Shared\_Layout.cshtml" />
<Content Include="Views\Auth\Login.cshtml" />
<Content Include="Views\Users\Create.cshtml" />
<Content Include="Views\Users\Delete.cshtml" />
<Content Include="Views\Users\Details.cshtml" />
<Content Include="Views\Users\Edit.cshtml" />
<Content Include="Views\Users\Index.cshtml" />
Expand Down
2 changes: 1 addition & 1 deletion UserManagement/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>
<title>@ViewBag.Title - User Management</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
Expand Down
81 changes: 0 additions & 81 deletions UserManagement/Views/Users/Delete.cshtml

This file was deleted.

5 changes: 3 additions & 2 deletions UserManagement/Views/Users/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@
<td>
@Html.ActionLink("Edit", "Edit", new { id = item.Id }) |
@Html.ActionLink("Details", "Details", new { id = item.Id }) |
<button data-key=@item.Id class="btn btn-danger deleteUser">Delete</button> |
@Html.ActionLink("Delete", "Delete", new { id = item.Id })
<button data-key=@item.Id class="btn btn-danger deleteUser">Delete</button>
</td>
</tr>
}
Expand All @@ -80,6 +79,7 @@
var confirmation = confirm("are you sure you want to remove the item?");
if (confirmation) {
//$("#spinner-div").show(); //Load button clicked show spinner
$.ajax({
url: '/Users/Delete/'+ id,
type: 'POST',
Expand All @@ -94,6 +94,7 @@
}
}
});
//$("#spinner-div").hide(); //Request is complete so hide spinner
}
});
});
Expand Down

0 comments on commit cf066a7

Please sign in to comment.