Skip to content

Conversation

@MpiloMshengu
Copy link
Collaborator

added Product controller

[HttpPost]
public async Task Post([FromBody] Product product)
{
await _db.ProductEntries.AddAsync(product);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do error handling (check for nulls when adding, see if the add was successful etc)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants