public ActionResult delAd(String id, int?page) { adRep.delAd(id); List <AdModel> a = adRep.getalAdd(); return(View("Index", a.ToPagedList(page ?? 1, 6))); }
public ActionResult delAd(String id) { adRep.delAd(id); List <AdModel> a = adRep.getalAdd(); return(View("Index", a)); }