Raspisanie/Zurnal/presence_api/Contollers/GroupController.cs/GroupController.cs
2024-11-11 11:31:26 +03:00

32 lines
720 B
C#

using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
using Zurnal.Domain.UseCase;
namespace presence_api.Controllers;
[ApiController]
[Route("api/[controller]")]
public class GroupController: ControllerBase {
private readonly GroupUseCase _groupUseCase;
public GroupController(GroupUseCase groupUseCase){
_groupUseCase = groupUseCase;
}
[HttpGet]
public ActionResult<IEnumerable<Group>> getGroups(){
return Ok(_groupUseCase.getAllGroup());
}
}
public class ApiControllerAttribute : ControllerAttribute, IApiBehaviorMetadata
{
}
public interface IApiBehaviorMetadata : IFilterMetadata
{
}
public interface IFilterMetadata
{
}
public class ControllerAttribute : Attribute
{
}