using LFlow.Base.Interfaces; using LFlow.Base.Utils; using LFlow.Home.Models.DataModels; // using LFlow.Interfaces; using LFlow.Home.Models.DtoModel; using LFlow.Base.BusinessInterface; using Serilog; using Microsoft.AspNetCore.Mvc; namespace LFlow.Home.Services; public class HomeService(IRepo repo, ILogger logger) : BaseController, IHomeService { [HttpGet] public HomeDto? DeleteById(string id) { var result = repo.Delete(id); return Mapper.Map(result); } [HttpGet] public HomeDto? GetById(string id) { logger.Information($"GetById id -> {id}"); var result = repo.Get(id); return Mapper.Map(result); } [HttpPost] public HomeDto? Save(HomeDto entity) { var result = repo.SaveOrUpdate(Mapper.Map(entity), false); return Mapper.Map(result); } [HttpGet] public List? Search(HomeDto whereObj) { throw new NotImplementedException(); } }