public ActionResult Delete(int id) { UserPosterClient userPosterClient = new UserPosterClient(); userPosterClient.Delete(id); return(RedirectToAction("ProfileAcc")); }
public ActionResult EliminarPoster(int id) { UserPosterClient posterClient = new UserPosterClient(); posterClient.Delete(id); if (User.IsInRole("Admin")) { return(RedirectToAction("BusquedaUserPoster", "UserAdmin")); } else { return(RedirectToAction("LogOut")); } }