LFlow/LFlow.Home/Controllers/HomeControl.cs

17 lines
496 B
C#

using LFlow.Base.BusinessInterface;
using LFlow.Base.Interfaces;
using LFlow.Home.Models.DtoModel;
using Microsoft.AspNetCore.Mvc;
using Serilog;
using Serilog.Core;
namespace LFlow.Home.Controllers;
public class HomeController(IHomeService<HomeDto, string> service, ILogger logger)
{
[HttpGet]
public string Home(string id)
{
logger.Information($"request id -> {id} _ hot_reload _ 1");
return service?.GetById(id)?.ToString() ?? "No service";
}
}