Last active
May 4, 2021 12:48
-
-
Save pichayean/94a14492aef96be5122142e0f28f6600 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Mvc; | |
namespace distributed_caching_redis.Controllers | |
{ | |
[ApiController] | |
[Route("[controller]")] | |
public class UsersController : ControllerBase | |
{ | |
private readonly IUsersService _usersService; | |
public UsersController(IUsersService usersService) | |
{ | |
_usersService = usersService; | |
} | |
[HttpGet] | |
public async Task<IEnumerable<Users>> Get() | |
{ | |
return await _usersService.GetUsersAsync(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment