14 lines
391 B
C#
14 lines
391 B
C#
using LFlow.Base.BusinessInterface;
|
|
using LFlow.Base.Interfaces;
|
|
using LFlow.Home.Models.DtoModel;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace LFlow.Home.Controllers;
|
|
public class HomeController(IHomeService<HomeDto, string> service) : BaseController
|
|
{
|
|
[HttpGet]
|
|
public string Home(string id)
|
|
{
|
|
return service?.GetById(id)?.ToString() ?? "No service";
|
|
}
|
|
} |