you probably dont care but if you are bored like me atm then you can stream pretty much all of the new movies and series on instaflixxer. Have been streaming with my gf during the lockdown :)
Thank you Husam. There is no specific reason. As you know programming to an interface is always better as apposed to specific concrete type. Sorry for being a bit inconsistent here.
Dear sir, thanks for your upcoming videos. But we have a question on your series. We observed, every section of this tutorial series, you have avoided deletion functionality. How much longer to implement the delete? As well as, we have started several asp.net Core applications project within your tutorial, thanks.
What a timing? In our next video in this series we discuss exactly that. How delete IdentityUser from AspNetUsers database table using the asp.net core Identity API. I will share the link here in the comment after it is uploaded. Thank you for asking.
Hello, I am following this course and I just want to ask how can I update the role of an existing user. I want to be able to update their role by clicking in a dropdown of roles that I created.
The ApplicationUser is solely for representing a User data entity. The ViewModel is only for dealing with information gathered or displayed by the view, and it may deal with different fields than ApplicationUser, depending on requirements. It's best to use models that relate to their domain of operation.
Hello Dear Kudvenkat, Is this secured to pass user id parameter to the route? What else can we do to secure all these "updating user" part? If you answer, I'll be so happy. Thank you.
Great question. No, not very secure. However, with ASP .NET Core it's easy to encrypt the ID. Encrypting and Decryption in ASP .NET Core is discussed in Part 120. You can find all the asp .net core course videos, slides and text articles in sequence on the following page. Hope you will find it handy. www.pragimtech.com/courses/asp-net-core-mvc-tutorial-for-beginners/ If you have time, can you please leave your rating and valuable feedback on the reviews tab. It really helps us. Thank you. Good luck and all the very best with everything you are doing.
@@Csharp-video-tutorialsBlogspot Thank you for you answer, I will check those videos. By the way, for SignalR there are not much resources to learn and all current Resources are include .net framework, not .net core and most likely they are "chat" systems. But do you have any articles or videos about SignalR -SQL realtime relationship? For like, notification systems?
You can use List if you want to. I just wanted to show we can use either of them. List implements IList. So you could use List or IList, although as you might already know programming against an interface is always much better than programming against a specific implementation. Hope this answers your question.
Dear Venkat - Could you kindly explain the following code that are present in EditUser HttpPost Action. Why are we copying Email, UserName, and City from the model object into the respective properties on the user object ??? user.Email = model.Email; user.UserName = model.UserName; user.City = model.City; var result = await userManager.UpdateAsync(user);
Because UpdateAsync() method of UserManager service only accepts an instance of type ApplicationUser and not EditUserViewModel. Hence we copy the data over to user object which is of type ApplicationUser. Hope this answers your question.
What I mean is when we update Email, UserName, and City on the user interface, those value that we type on the UI will be copied into the respective properties on the user object is it ???
Yes, the values from the UI are automatically passed to EditUserViewModel through model binding and we are copying them over to the User object which is then passed to UpdateAsync() method of UserManager service. The UserManager service in tun updates the data in the underlying AspNetUsers database table. Hope this now clear to you.
Thanks for the video! Very helpful. Can anyone know how to update customized appUser with PK = UserName (new column)? I am using updateAsync(user) and its getting failed with error msg= "Failed:DuplicateUserName". Any suggestions?
Severity Code Description Project File Line Suppression State Error CS0411 The type arguments for method 'IModelExpressionProvider.CreateModelExpression(ViewDataDictionary, Expression)' cannot be inferred from the usage. Try specifying the type arguments explicitly. EmployeeManagement Active I got this error in EditUser.cshtml in line one when we set the model EditUserViewModel