Example #1
0
        public override O7Response Menus(string companyId, string branchId, string menuId)
        {
            var menus       = SecurityDataService.Menus(companyId, branchId, menuId);
            var sortedMenus = Algorithm.SortMenus(menus, menuId);

            return(O7SuccessResponse.MakeResponse(sortedMenus));
        }
Example #2
0
        public override O7Response Branches(string companyId)
        {
            var companies           = SecurityDataService.Branches(companyId);
            var companiesSerialized = O7JsonSerealizer.Serialize(companies);

            return(O7SuccessResponse.MakeResponse(companiesSerialized));
        }
Example #3
0
        public override O7Response Companies()
        {
            var companies           = SecurityDataService.Companies();
            var companiesSerialized = O7JsonSerealizer.Serialize(companies);

            return(O7SuccessResponse.MakeResponse(companiesSerialized));
        }
Example #4
0
        public override O7Response AnotherModules(string companyId, string branchId, string moduleId)
        {
            var modules = SecurityDataService.AnotherModules(companyId, branchId, moduleId);

            return(O7SuccessResponse.MakeResponse(modules));
        }
Example #5
0
        public override O7Response UserName(string companyId, string branchId)
        {
            var userName = SecurityDataService.UserName(companyId, branchId);

            return(O7SuccessResponse.MakeResponse(userName));
        }
Example #6
0
        public override O7Response ValidAccess(string companyId, string branchId, string menuId)
        {
            var result = SecurityDataService.ValidAccess(companyId, branchId, menuId);

            return(O7SuccessResponse.MakeResponse(result));
        }
Example #7
0
 protected SecurityDomain(string login, string password)
 {
     SecurityDataService = O7DataInstanceMaker.MakeInstance <SecurityDataService>(new object[] { login, password });
 }