using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using TestProjectMvc.Models; using PagedList; using PagedList.Mvc; namespace TestProjectMvc.Controllers { public class HomeController : Controller { public ActionResult Index() { UserViewModel obj = new UserViewModel(); UserBAL user = new UserBAL(); obj.UserList = user.GetListRecord(user).ToPagedList(1, 20); return View(obj); }
public ActionResult Delete(int id) { UserViewModel obj = new UserViewModel(); UserBAL user = new UserBAL(); user.DeleteRecord(id); return new EmptyResult(); } } }
After Delete
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Can you answer this question?
Write Answer1 Answers