Ahmad Mozaffar

Results 57 comments of Ahmad Mozaffar

> Excuse me for closing and re-opening this PR, I think I need to do it to get the new build checks working properly since it was opened before they...

Thank you so much for this report I'm reproducing the issue on my repo to check what's going wrong I will keep you updated on this side

Hi @kelcho-spense Thank you so much for reaching! Could you please share the *@code* section of your Blazor Component *AddEvent.razor* I think it's a small issue, but need more context...

Okay well, Here is the thing this code is very old, and I was new to Blazor and Blazor was new when I did it. I will go over it...

Hi Sorry for that late reply. What you can do in this case is to use the AccountClaimsPrincipalFactory I think this is the best solution, after the user logs in...

That's it, you have done in a perfect, this is all what you need, the code is clear and doing the task very well. So happy for that. Stay tuned...

Sorry for that late reply, Regarding how to do that in your pages, you can simply check if the user existing in some role if not redirect him to the...

Ah okay, I understood now, the issue is that the GetUserById is throwing error if the user is not found. Okay modify the GetUserByUserAsync to not throw an exception and...

You approche is right in general but you can make it return dto just like this ``` C# var user = await _db.UserProfiles.SingleOrDefaultAsync(up => up.UserId == userId); return user ==...

Hi Sorry for late reply, you have a very interesting question, actually for me I'm totally focusing now into developing a full apps using Azure Functions, they have all the...