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

            dao.Listar();
        }