public JsonResult delete(String data) { repository objRep = new repository(); return(Json(objRep.DeleteUser(data), JsonRequestBehavior.AllowGet)); }
public IActionResult DeleteConfirmed(int id) { repository.DeleteUser(id); return(RedirectToAction("Index")); }