Created
January 30, 2019 19:00
-
-
Save evgomes/683412268007ec31a78cc97b0e65b7d4 to your computer and use it in GitHub Desktop.
Real logic of FindByIdAsync and Update from CategoryRepository, of Supermarket API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task<Category> FindByIdAsync(int id) | |
{ | |
return await _context.Categories.FindAsync(id); | |
} | |
public void Update(Category category) | |
{ | |
_context.Categories.Update(category); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment