Пример #1
0
        public ActionResult Detail(int Id = 0)
        {
            ViewBag.Height = (int)(Request.Browser.ScreenPixelsHeight * 0.85);
            TB_SERVICES d = Services_Service.GetById(Id);

            List <TB_TYPE_DETAILS> types = Types_Service.GetAllDetails(d.ServiceTypeCode);

            ViewBag.Types = types;
            List <TB_SERVICE_DETAILS> details = Services_Service.GetAllDetails(Id);

            ViewBag.Details = details;

            List <TB_FILES> file     = Files_Service.GetByRefecense("" + Id).Where(x => x.FileType == "SERVICE").ToList();
            List <TB_TYPES> listType = Types_Service.GetAll();

            ViewBag.Files    = file;
            ViewBag.ListType = listType;

            List <TB_MENUS> listMenu = new List <TB_MENUS>();

            listMenu      = Menu_Service.GetByServiceId(Id);
            ViewBag.Menus = listMenu;

            return(View(d));
        }
Пример #2
0
        public PartialViewResult _MenuGroup(int serviceId)
        {
            List <TB_MENUS> listMenu = new List <TB_MENUS>();

            try
            {
                listMenu = Menu_Service.GetByServiceId(serviceId);

                ViewBag.Height = (int)(Request.Browser.ScreenPixelsHeight * 0.85);
            }
            catch (Exception)
            {
            }
            ViewBag.Menus = listMenu;

            return(PartialView());
        }