Base solution for your next web application

Activities of "donpedrodelamuerte"

Maybe I didn't understand how RESTful api work. I'm a student and still a newbie in web application. So it's probably not the place to discuss this. But I thought all request needed to be an http request GET, PUT, POST etc...

If I write directly the url let say localhost:1234/controller/action

Am I not bypassing the web api?

Hi,

sorry for the late reply, I don't work often on that project.

I took the asp.net Core 1.x template with module zero actually, but I guess it's the same as the mvc 5.x, is it ?

Thanks for the reply! It helped a lot!

The only issue I have is I can't update the field IsActive and IsEmailConfirm for the user. Somehow, even if the user was created in the DB.

What I'm trying to do is this: Once the user clicked the confirmation link he received by email this method is called:

[UnitOfWork]
 public async Task<ActionResult> ConfirmEmail(int userID)
 {
        //find the user by id
        User userToUpdate = await _userManager.FindByIdAsync(userID);    //--> always return null
        //User userToUpdate = await _userManager.GetUserByIdAsync(userID);   //--> throw exception AbpException: There is no user with id: 7

         //activate user & confirm email - this is supposed to auto update the db...
         userToUpdate.IsActive = true;
         userToUpdate.IsEmailConfirmed = true;

         return RedirectToAction("Login");
}

Problem is, the user is never found. Would this be the right way to update a user ? It seems so when I read this page: [http://www.aspnetboilerplate.com/Pages/Documents/Unit-Of-Work])...

Showing 1 to 3 of 3 entries