// GET: Lojas public ActionResult Index() { if (Request.IsAuthenticated) { if (Convert.ToInt32(System.Web.HttpContext.Current.User.Identity.Name.Split('|')[2]) == 1) { return(View(LojaDAO.Listar(Convert.ToInt32(System.Web.HttpContext.Current.User.Identity.Name.Split('|')[1])))); } } return(View(LojaDAO.Listar())); }
public void Listar() { LojaDAO dao = new LojaDAO(); dao.Listar(); }