My situation is as follows. A User will update a property on the UI after a phone call has been made. The outcome of the phone call determines the property. Such as no answer, dead number or add a call-back. In the domain layer, different things will occur depending on the outcome of the phone call.
Im trying to work out what is the best way to deal with this in the ‘back end’ software. I could add a endpoint which is customer/status and send through a status id. The only problem with that is that different information is required depending on the outcome, for example call back requires a date be sent to the api along with the status. The other solution is to have a endpoint for each outcome but this seems like bad practice and overkill.
Any ideas will be highly appreciated.
no comments yet
Be the first to share what you think!
C# devs
null reference exceptions