// 刪除 public ActionResult Delete(long RecordID) { RepositoryUser repo = new RepositoryUser(); UserMD data = repo.GetUserMD(RecordID); return(data == null?PartialView("_Error") : PartialView("_Delete", data)); }