public ActionResult Delete(int id) { urlRepository.DeleteById(id); return(Json(urlRepository.GetAll())); //return View(); }
public ActionResult Delete(int id) { Sessao.verificaSessao(); urlRepository.DeleteById(id); return(Json(urlRepository.GetAll(), JsonRequestBehavior.AllowGet)); }