public async Task <UpdateOrganizationViewModel> GetUpdateOrganizationViewModel(string orgId, EntityHeader userOrg, EntityHeader user) { /* Only gets a view model with the content of the organization, doesn't do any updating */ var org = await _organizationRepo.GetOrganizationAsync(orgId); await AuthorizeAsync(org, AuthorizeResult.AuthorizeActions.Update, user, userOrg); return(UpdateOrganizationViewModel.CreateFromOrg(org)); }
public async Task <UpdateOrganizationViewModel> GetUpdateOrganizationViewModel(string organizationId) { var org = await _organizationRepo.GetOrganizationAsync(organizationId); return(UpdateOrganizationViewModel.CreateFromOrg(org)); }