Exemplo n.º 1
0
		public LoadUserForEditResponse LoadUserForEdit(LoadUserForEditRequest request)
		{
			var user = FindUserByName(request.UserName);

			var assembler = new UserAssembler();
			return new LoadUserForEditResponse(assembler.GetUserDetail(user));
		}
Exemplo n.º 2
0
		public LoadUserForEditResponse LoadUserForEdit(LoadUserForEditRequest request)
		{
			var user = FindUserByName(request.UserName);

			EnsureCurrentUserAuthorizedToManage(user.AccountType);

			var assembler = new UserAssembler();
			return new LoadUserForEditResponse(assembler.GetUserDetail(user));
		}