You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The feature was not designed into the application. Steps to solve the issue
Database modification
Add a boolean IsActive field to the table, Vehicle Location. 1 = true and 0 = false
Modify the query fetching all records to fetch records with the condition IsActive = 1
Add a stored procedure to modify the status.
API
Add a post endpoint which accepts a class with the vehicle unique name and active status for the purpose of modification of the database IsActive status on the table Vehicle location.
A model is required {string UniqueVehicleName; bool IsActive; }
Add necessary code.
Application
The same model as API and some code for the API call
The application currently pulls all vehicles on the database even the one not actively delivering stuff.
The text was updated successfully, but these errors were encountered: