Пример #1
0
        public ActionResult Kartoteka(int?page, string search, string asc, string desc)
        {
            if (KancelariaSettings.IsOneFirm())
            {
                return(RedirectToAction("Edytuj", new { id = KancelariaSettings.IdFirmy(User.Identity.Name) }));
            }

            var Model = FirmyRepository.Firmy(page ?? 0, search, asc, desc);

            return(View(Grid(Model)));
        }
Пример #2
0
        public ActionResult Index()
        {
            //ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application.";

            return(View(new MenuModel(KancelariaSettings.IsOneFirm())));
        }