Net core application. I have below query in my application var result = sourceProposal.Quotes .Where(x=>x.QuotationId == sourceQuoteId) .FirstO
After converting my application into .NET Core 3.1 , the FromBody json attribute is not working . So Ichanged into [FromBody] JsonElement model. After changin
I have Razor Page with the following piece of code to create a link that adds a dynamic value to the route when clicked. This works perfectly. <a class="page
In my .NET 5 aspnetcore application, NLog is mostly working except for loading the Instrumentation Key from appsettings.json for the logger. It seems to be load
I have this link <a asp-action="goPay" asp-route-id="@item.Appid" asp-route-mem="@item.Memid" asp-route-amt="@item.Areq" asp-controller="Withdraw" class="btn
I tried to publish my dotnet app using dotnet publish --output publish --configuration Release but the result not as expected because the last
I have this line in program.cs builder.Services.AddAuthentication() .AddScheme<SharedSecretAuthenticationOptions, SharedSecretAuthenticationHandler>(S
I'm trying to create a middleware to handle country code in the url. The code i have works great for removing the country code, so it's routed to the correct en
Recently, I found OpenTelemetry, and I like to use it in my application. First, I created a new Asp.Net Core 5 web API and exported traces on the console. After
I have an API that is connected to a database and where I retrieve data. One schema example: The idea is to retrieve all related data based on the Application
After ajax call is completed and the model is posted successfully to the controller, what should the controller return? In my case, I just want to add an item t
var result = JsonConvert.DeserializeObject<Risks>(jsonData); var finalResult = result.Value.Where(x => x.ID == 5).ToList
I am trying to learn behind the scene of Routing and I find out that WebApplication implements IEndpointRouteBuilder which allows it to define routes for exampl
I want create micro service architecture solution so I add some services for my solution. All my services must have one table in my database in there models so
I have successfully created a product but the page doesn't redirects to the view I want...and I don't really know why... [HttpPost] public async Task AddProduct
I have a question for Blazor Server Side. I want to @page route url define with variable or property. I can use now with below default method @page "/route-url"
I'm trying to export data from database to an excel file and then download that file on client side. The export works fine but the problem is with the download
When I use Pomelo.EntityFrameworkCore.MySql in combination with Microsoft.AspNetCore.Identity I am getting that error. Are my dependencies wrong ? Similar issue
Net application. I have one entity with child entities. I have to filter based on child entity values. For example in the below query, var sourceProposal = pro
I have below config public static IEnumerable<IdentityResource> GetIdentityResources=> new List<IdentityResource> { new