public int AddRole(AppRoleAddVM model)
        {
            AppRole role = AppRoleConverter.FromAppRoleAddVM(model);

            AppRoleRepository.Add(role);
            AppRoleRepository.Save();
            return(role.Id);
        }
        public AppRole FromAppRoleAddVM(AppRoleAddVM model)
        {
            AppRole role = new AppRole
            {
                Name        = model.Name,
                Description = model.Description,
                AppRoleType = AppRoleType.Administrator
            };

            return(role);
        }