Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store and retrieve terms and conditions text #49

Closed
8 tasks
aniri opened this issue Apr 26, 2021 · 2 comments · Fixed by #158
Closed
8 tasks

Store and retrieve terms and conditions text #49

aniri opened this issue Apr 26, 2021 · 2 comments · Fixed by #158

Comments

@aniri
Copy link
Member

aniri commented Apr 26, 2021

The terms and conditions text should be stored in the db as html.

A get endpoint should be used by the frontend apps in order to retrieve it.
Todo:

  • rename LocalizationController to AdminLocalizationController
  • change route to admin/content
  • add method AddOrUpdateContentAsync(AddOrUpdateContentModel model) to add a new row in StringResource table
  • Add project called DeUrgenta.Contnent.Api
  • Add ContentController
  • Add a method GetContentAsync(string key) see for refference LocalizationController.GetString
  • Add a method GetAvailableContentKeys() which will return all available keys fo language from Accept-Language header
  • Add a method GetAvailableLanguages() which will return all available languages
@DSVDavid
Copy link
Contributor

Can I take this one?

@idormenco
Copy link
Member

@DSVDavid all yours! I have updated todo list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants