sierrataylor / safety-equipment-inspection-app

3 stars 1 forks source link

Optimizing code in controllers #123

Closed sierrataylor closed 1 year ago

sierrataylor commented 1 year ago

JSONSerializerSettings are needed to make JSON keys camel case, so they can be sent to the front end and rendered in the UI. UpdateQuestion method also needed a better way of sending the updates to FiresStore. JSONSerializerSettings objects have been added to the top of each controller file, and parameters in UpdateQuestion have been changed to individual parameters instead of a QuestionDto.