Beispiel #1
0
        private void DeleteUser(object sender, GetUserByIdEventArgs e)
        {
            if (this.currentUser == null || this.currentUser.Id != e.Id)
            {
                throw new HttpException(404, "File Not Found!");
            }

            //ToDo
        }
Beispiel #2
0
        private void GetUser(object sender, GetUserByIdEventArgs e)
        {
            AspNetUser user;

            try
            {
                user = this.usersData.UsersRepository.GetUserById(e.Id);
                this.View.Model.User = user;
                this.currentUser     = user;
            }
            catch (Exception)
            {
                throw new HttpException(500, "Internal Server Error");
            }
        }
 private void View_OnGetUserDetails(object sender, GetUserByIdEventArgs e)
 {
     this.View.Model.User = this.userService.GetUserById(e.Id);
 }