public LoadUserForEditResponse LoadUserForEdit(LoadUserForEditRequest request) { var user = FindUserByName(request.UserName); var assembler = new UserAssembler(); return new LoadUserForEditResponse(assembler.GetUserDetail(user)); }
public LoadUserForEditResponse LoadUserForEdit(LoadUserForEditRequest request) { var user = FindUserByName(request.UserName); var assembler = new UserAssembler(); return(new LoadUserForEditResponse(assembler.GetUserDetail(user))); }
public LoadUserForEditResponse LoadUserForEdit(LoadUserForEditRequest request) { var user = FindUserByName(request.UserName); EnsureCurrentUserAuthorizedToManage(user.AccountType); var assembler = new UserAssembler(); return(new LoadUserForEditResponse(assembler.GetUserDetail(user))); }
public LoadUserForEditResponse LoadUserForEdit(LoadUserForEditRequest request) { var user = FindUserByName(request.UserName); EnsureCurrentUserAuthorizedToManage(user.AccountType); var assembler = new UserAssembler(); return new LoadUserForEditResponse(assembler.GetUserDetail(user)); }