From 1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 10:38:18 -0300 Subject: chore: location --- .../StatusProspeccaoRepository.cs | 54 ---------------------- 1 file changed, 54 deletions(-) delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Repository.Logic/StatusProspeccaoRepository.cs (limited to 'Gestor.Infrastructure/Gestor.Infrastructure.Repository.Logic/StatusProspeccaoRepository.cs') diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Logic/StatusProspeccaoRepository.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Logic/StatusProspeccaoRepository.cs deleted file mode 100644 index 9e9cac0..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Logic/StatusProspeccaoRepository.cs +++ /dev/null @@ -1,54 +0,0 @@ -using AutoMapper; -using Gestor.Infrastructure.Entities.Ferramentas; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Mappers; -using Gestor.Infrastructure.Repository.Generic; -using Gestor.Infrastructure.Repository.Interface; -using Gestor.Infrastructure.UnitOfWork.Generic; -using Gestor.Model.Domain.Ferramentas; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Repository.Logic -{ - public class StatusProspeccaoRepository : GenericRepository, IStatusProspeccaoRepository, IGenericRepository - { - private readonly GenericUnitOfWork _unitOfWork; - - public StatusProspeccaoRepository(GenericUnitOfWork unitOfWork) : base(unitOfWork.Session) - { - this._unitOfWork = unitOfWork; - } - - public List FindAll() - { - return ( - from x in base.All() - select new StatusDeProspeccao() - { - Id = x.Id, - Nome = x.Nome, - Descricao = x.Descricao, - Ativo = x.Ativo, - Excluido = x.Excluido - }).ToList(); - } - - public StatusDeProspeccao Merge(StatusDeProspeccao statusProspeccao) - { - StatusDeProspeccaoDb statusDeProspeccaoDb = ApplicationMapper.Mapper.Map(statusProspeccao); - base.Merge(statusDeProspeccaoDb); - return ApplicationMapper.Mapper.Map(statusDeProspeccaoDb); - } - - public StatusDeProspeccao SaveOrUpdate(StatusDeProspeccao statusProspeccao) - { - StatusDeProspeccaoDb statusDeProspeccaoDb = ApplicationMapper.Mapper.Map(statusProspeccao); - this.SaveOrUpdate(statusDeProspeccaoDb); - return ApplicationMapper.Mapper.Map(statusDeProspeccaoDb); - } - } -} \ No newline at end of file -- cgit v1.2.3