コード例 #1
0
ファイル: OrgManager.cs プロジェクト: chandusekhar/UserAdmin
        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));
        }
コード例 #2
0
        public async Task <UpdateOrganizationViewModel> GetUpdateOrganizationViewModel(string organizationId)
        {
            var org = await _organizationRepo.GetOrganizationAsync(organizationId);

            return(UpdateOrganizationViewModel.CreateFromOrg(org));
        }