_vegabyte_
"Execution Timeout Expired. The timeout period elapsed prior to completion of the operation"
Im have a API to get all clients but the information need to fetch is needed some navigational properties. I use SingleQuery, SplitQuery and AsNoTracking. But I'm getting Execution Timeout Expired". Any suggestion and advice are well much appreciated!
https://paste.mod.gg/otgeydlycylz/0
47 replies
✅ Proper implementation of API
Hi guys, so I have a client registration implementation. The client should input their Personal Information, Terms and Conditions, and add some valid documents.
I divided them to 3 APIs, AddPersonalInfo, AddTermsAndCondition, AddAttachments. Since the informations is needed to provide all at once it means I will calling the API one by one, one after another. Do you guys think it's good practice? Or is there any another approach for this implementation.
My concern is what if one of the API is failed, the saving should not be completed and be voided. Your suggestion are well appreciated. Thanks
15 replies
❔ Call API From Web API on Blazor Server
Hello respected community members,
I am new to Blazor Server and I am currently trying to fetch data from a .NET Core Web API to populate a data table. I am struggling with getting the data and then displaying it in my Blazor component.
I have an HttpClient service and I'm sending a GET request to my API endpoint. The API is working correctly.
However, I am having trouble deserializing this JSON response and showing it in a table in my Blazor component.
Here is the pertinent part of my code:
31 replies
✅ Filtering problems in .Net Core
Hello everyone,
I'm in the midst of a coding project and have encountered a challenge. I'm attempting to narrow down checklist questions by product type, but I'm encountering an issue with null product types. Even when I provide a productTypeId, I'm still getting checklist questions with null productTypeId.
Any insights or suggestions would be highly valued. Your assistance is greatly appreciated!
Thank you in advance!
22 replies
✅ Multi Level of Approval
Hi, I recently create a system with approval level
For Example:
Sick Leave Request Module: 2 Approver
Vacation Leave Request Module: 4 Approver
The request will be forwarded to the first approver and after approved it will move to the second approver until the request is approved.
But once the request is rejected, the request will be forwarded back to the requestor to review the request he made. He can re submit the request and start the process again.
Condition:
The level of approval is editable
Any approver removed from the list of Approver that has pending for approval should retain the data and needs to be approved. It means any future request will be send to the new approver.
It has also tracking to the timeline of the approval. When reject, when approved, who reject or who approved.
Any suggestions on the database model to have different stages of approval in a Module. Any suggestion and advice is much appreciated. Thank you.
15 replies
❔ MediatR Issue with IRequest and Generic Method in ASP.NET Core
I'm facing an issue with MediatR in my ASP.NET Core project. I have an action method in a controller where I'm using MediatR's ISender.Send<TRequest> (where TRequest is GetCollectionsAsyncQuery) inside a generic method. However, I'm getting this exception:
"The type 'GetCollectionsAsyncQuery' cannot be used as type parameter 'TRequest' in the generic type or method 'ISender.Send (TRequest, CancellationToken)'. There is no implicit reference conversion from 'GetCollectionsAsyncQuery' to 'IRequest'."
Here's my HttpGet action method:
The relevant codes inside my Handler method and GetCollectionsAsyncQuery are:
42 replies
✅ JWT Authorization Issue with .NET Core Web API
Hello everyone,
I am currently working on an ASP.NET Core Web API that uses JWT for authorization. I have a GetAllUsersAsync endpoint that needs to be authorized but I am facing some issues. Here is the code for the endpoint:
Here is my JWT authentication setup:
The problem I'm encountering is when I try to access the GetAllUsersAsync endpoint with a valid token, I still get unauthorized responses. It seems the token isn't correctly validated or there's something wrong with my setup.
Would appreciate any ideas or suggestions on what might be wrong.
Thank you in advance.
4 replies
✅ Get an Id from a table and save it to other table
Hello, I have a
Customer
table that serves as a masterlist for my customers. I also have a Orders
table. Now that the Orders
table has a CustomerId
column, it is referred to as the Customer
table.
Initially, I had a GetAllActiveCustomers
api that will collect all the customers and match the customer's name from the incoming orders if they match, I will obtain the customerId and save it to the Orders
table. Is there any other approach for this? Any suggestions would be greatly appreciated.35 replies
❔ Need some advise regarding HTTP Request
Hello, I have a few operations here and would appreciate some guidance on how to carry them out.
I therefore have a payer table. It has a column for the remaining balance.
Additionally, I have a contribution table where the funds from payers go.
I must update the Payer's remaining Balance if the payer adds a contribution (HTTP POST).
Should I have to make two APIs?
1. Making a Contribution
2. Updating the balance that remains
Or a single API that updates the remaining balance and create contributions?
38 replies
❔ Querying Department Names using DepartmentID from User Queries
I'm attempting to query users based on their status, but I also want to display the department name associated with each user in the result. To accomplish this, I plan to use the department ID provided in the user query and perform a subsequent query to retrieve the associated department name. What approach would you recommend for achieving this?
29 replies