MVC basics or looks like I am doing something terribly wrong, but have not slightly idea what is it?
Want to delete user from MVC Framework's Built in Security Module.
So first I define Delete() in AccountController:
public ActionResult DeleteUser()
User_Repository urp = new User_Repository();
aspnet_Users currUser = urp.Get_AspNet_User(HttpContext.User.Identity.Name);
and this works fine.
I added view (for delete) DeleteUser.aspx
<h3>Are you sure you want to delete this?</h3>
<div class="display-field"><%= Html.Encode(Model.UserId) %></div>
<div class="display-field"><%= Html.Encode(Model.UserName) %>&
View Complete Post