|
|
@ -139,6 +139,7 @@ export class UserComponent implements OnInit { |
|
|
|
email: instance.validateForm.value.email, |
|
|
|
email: instance.validateForm.value.email, |
|
|
|
organizationId: instance.validateForm.value.organization, |
|
|
|
organizationId: instance.validateForm.value.organization, |
|
|
|
roleIds: instance.validateForm.value.role, |
|
|
|
roleIds: instance.validateForm.value.role, |
|
|
|
|
|
|
|
posts: instance.validateForm.value.posts, |
|
|
|
} |
|
|
|
} |
|
|
|
this.http.post('/api/Users', body).subscribe({ |
|
|
|
this.http.post('/api/Users', body).subscribe({ |
|
|
|
next: async (data) => { |
|
|
|
next: async (data) => { |
|
|
@ -192,6 +193,7 @@ export class UserComponent implements OnInit { |
|
|
|
email: instance.validateForm.value.email, |
|
|
|
email: instance.validateForm.value.email, |
|
|
|
organizationId: instance.validateForm.value.organization, |
|
|
|
organizationId: instance.validateForm.value.organization, |
|
|
|
roleIds: instance.validateForm.value.role, |
|
|
|
roleIds: instance.validateForm.value.role, |
|
|
|
|
|
|
|
posts: instance.validateForm.value.posts, |
|
|
|
} |
|
|
|
} |
|
|
|
this.http.patch(`/api/Users/${item.id}`, body).subscribe({ |
|
|
|
this.http.patch(`/api/Users/${item.id}`, body).subscribe({ |
|
|
|
next: async (data) => { |
|
|
|
next: async (data) => { |
|
|
|