public IActionResult Index(int?outletListId, int?foodCategoryId, int?flag) { _iCommonService.GetPageWiseRoleRigths("FoodMenuRate"); FoodMenuRateModel foodMenuRateModel = new FoodMenuRateModel(); foodMenuRateModel.FoodCategoryList = _iDropDownService.GetFoodMenuCategoryList(); foodMenuRateModel.OutletList = _iDropDownService.GetOutletList(); if (Convert.ToInt32(flag) > 0) { foodMenuRateModel.foodMenuRates = _iFoodMenuRateService.GetFoodMenuRateList(Convert.ToInt32(foodCategoryId), Convert.ToInt32(outletListId)); } return(View(foodMenuRateModel)); }
public ViewResult GetMasterSales() { MasterSalesReport masterSalesReport = new MasterSalesReport(); masterSalesReport.FoodCategoryList = _iDropDownService.GetFoodMenuCategoryList(); masterSalesReport.FoodMenuList = _iDropDownService.GetFoodMenuList(); masterSalesReport.OutletList = _iDropDownService.GetOutletList(); return(View(masterSalesReport)); }
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")); } }
public ActionResult CardTerminal(int?id) { CardTerminalModel cardTerminalModel = new CardTerminalModel(); if (UserRolePermissionForPage.Add == true || UserRolePermissionForPage.Edit == true) { if (id > 0) { int cardTerminalId = Convert.ToInt32(id); cardTerminalModel = _iCardTerminalService.GetCardTerminalById(cardTerminalId); } cardTerminalModel.OutletList = _iDropDownService.GetOutletList(); return(View(cardTerminalModel)); } else { return(RedirectToAction("NotFound", "Error")); } }
public ActionResult User(int?id) { UserModel userModel = new UserModel(); if (UserRolePermissionForPage.Add == true || UserRolePermissionForPage.Edit == true) { if (id > 0) { int userId = Convert.ToInt32(id); userModel = _iUserService.GetUserById(userId); } userModel.EmployeeList = _iDropDownService.GetEmployeeList(); userModel.OutletList = _iDropDownService.GetOutletList(); userModel.WebRoleList = _iDropDownService.GetWebRoleList(); return(View(userModel)); } else { return(RedirectToAction("NotFound", "Error")); } }
public ActionResult OutletRegister(int?id) { OutletRegisterModel outletRegisterModel = new OutletRegisterModel(); if (UserRolePermissionForPage.Add == true || UserRolePermissionForPage.Edit == true) { outletRegisterModel.OpenDate = DateTime.Now; if (id > 0) { int OutletRegisterId = Convert.ToInt32(id); outletRegisterModel = _iOutletRegisterService.GetOutletRegisterById(OutletRegisterId); } outletRegisterModel.OutletList = _iDropDownService.GetOutletList(); outletRegisterModel.UserList = _iDropDownService.GetUserList(); return(View(outletRegisterModel)); } else { return(RedirectToAction("NotFound", "Error")); } }