I'm working on a UML diagram of a Web API
Where i have a HttpGet method:
// GET: api/Posts
[HttpGet]
public async Task<ActionResult<IEnumerable<Post>>> GetPosts()
{
return await _context.Posts.OrderByDescending(x => x.Date).ToListAsync();
}
I'm not sure how to show that it is an async task with ActionResult<IEnumerable<Post>, and how the return should look like.
Second question: How would an association of a Model and a controller look like?
