Esempio n. 1
0
 // 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()));
 }
Esempio n. 2
0
        public void Listar()
        {
            LojaDAO dao = new LojaDAO();

            dao.Listar();
        }