Beispiel #1
0
 private void BindUserRole(int userId, JObject value)
 {
     if (userId > 0 && value["role"] != null)
     {
         var role = value["role"].ToObject <IEnumerable <int> >().Select(t => new UserRole()
         {
             User = userId, Role = t
         });
         _roleServices.BindUserRole(role);
     }
 }