Esempio n. 1
0
        public ActionResult Tables(int?id)
        {
            TablesModel tableModel = new TablesModel();

            if (UserRolePermissionForPage.Add == true || UserRolePermissionForPage.Edit == true)
            {
                if (id > 0)
                {
                    int tableId = Convert.ToInt32(id);
                    tableModel = _iTablesService.GetTablesById(tableId);
                }
                tableModel.OutletList = _iDropDownService.GetOutletList();
                return(View(tableModel));
            }
            else
            {
                return(RedirectToAction("NotFound", "Error"));
            }
        }