TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Karan Thakkar
1.5k
204
90k
Async Await in asp.net core web api?
Aug 12 2019 5:15 AM
On first request method gets executed but on the second call it doesn't, I am aslo using await keyword?
The method which I am calling is not an async method?
When I debug the code user comes null once I logout and again login but by going inside the method with F11 user gets filled, can someone help me to understand this?
public
async Task<IActionResult> AuthenticateUser([FromBody] User user)
{
Login login =
new
Login();
user = await login.AuthenticateUser(user.LoginId, user.Password);
if
(userDetails!=
null
)
{
return
Ok(userDetails);
}
return
BadRequest();
}
Reply
Answers (
4
)
tesseract ocr version 4
Boxing and unboxing