1

I am working on a Web Api that returns JSON data. How do I return a converted Color from hex code as a string or whatever type that can be wired up in the front end to represent a color?, in other words, how can I return the color White from #ffffff hex code and assign it to a Model property so it can be returned as part of a JSON response?

Alexei Levenkov
  • 98,904
  • 14
  • 127
  • 179
Papi
  • 555
  • 13
  • 40

0 Answers0