public void Update(Role role)
 {
     if (role != null)
     {
         uow.RoleRepository.Update(role.ToDalRole());
         uow.SaveChanges();
     }
 }
        public override void CreateRole(string roleName)
        {
            if (!string.IsNullOrEmpty(roleName))
            {
                Role role = new Role() { Name = roleName, Description = roleName };

                //IKernel kernel = new StandardKernel(new BindingModule());
                //IRoleService roleService = kernel.Get<IRoleService>();

                IRoleService roleService = DependencyResolver.Current.GetService<IRoleService>();

                roleService.Create(role);
            }
        }
 public void Create(Role role)
 {
     uow.RoleRepository.Create(role.ToDalRole());
     uow.SaveChanges();
 }