示例#1
0
 public async Task <IBackOfficeUser> GetUserAsync()
 {
     return(await UsersRepository.GetAsync(GetUserId()));
 }
        public async Task <ActionResult> EditUserDialog(string id)
        {
            var viewModel = new EditUserDialogViewModel
            {
                User    = string.IsNullOrEmpty(id) ? BackOfficeUser.CreateDefault():  await _backOfficeUsersRepository.GetAsync(id),
                Caption = Phrases.EditUser
            };

            return(View(viewModel));
        }