Presence.Desktop/presence_api/Controllers/GroupController/GroupController.cs

20 lines
493 B
C#
Raw Normal View History

2024-12-20 08:49:17 +00:00
using data.Domain.UseCase;
using data.RemoteData.RemoteDataBase.DAO;
using Microsoft.AspNetCore.Mvc;
namespace presence_api.Controllers;
[ApiController]
[Route("api/[controller]")]
public class GroupController: ControllerBase {
readonly GroupUseCase _groupUseCase;
public GroupController(GroupUseCase groupUseCase)
{
_groupUseCase=groupUseCase;
}
[HttpGet]
public ActionResult<IEnumerable<GroupDao>> getGroups()
{
return _groupUseCase.GetAllGroups();
}
}