24 lines
700 B
C#
24 lines
700 B
C#
using GozareshgirProgramManager.Application._Common.Models;
|
|
using GozareshgirProgramManager.Application.Modules.Skills.Queries.GetSkillList;
|
|
using MediatR;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using ServiceHost.BaseControllers;
|
|
|
|
namespace ServiceHost.Areas.Admin.Controllers.ProgramManager;
|
|
|
|
public class SkillController:ProgramManagerBaseController
|
|
{
|
|
private readonly IMediator _mediator;
|
|
|
|
public SkillController(IMediator mediator)
|
|
{
|
|
_mediator = mediator;
|
|
}
|
|
|
|
[HttpGet]
|
|
public async Task<ActionResult<OperationResult<GetSkillListResponse>>> GetList([FromQuery]GetSkillListQuery query)
|
|
{
|
|
var res = await _mediator.Send(query);
|
|
return res;
|
|
}
|
|
} |