Created
December 12, 2022 16:02
-
-
Save carloswm85/8818be20ad836f100dae81306af6c59b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public List<ExpedientesEstados> GetFileStatusList(int id = 0, int idRequestStatus = 0, int idSector = 0, string fileNumber = "") | |
{ | |
if (id != 0) return _unitOfWork.ExpedientesEstadosRepository.GetAll().Where(e => e.id == id).ToList(); | |
if (idRequestStatus != 0) return _unitOfWork.ExpedientesEstadosRepository.GetAll().Where(e => e.idEstadoSolicitud == idRequestStatus).ToList(); | |
if (idSector != 0) return _unitOfWork.ExpedientesEstadosRepository.GetAll().Where(e => e.idSector == idSector).ToList(); | |
if (fileNumber != "") return _unitOfWork.ExpedientesEstadosRepository.GetAll().Where(e => e.nroExpediente == fileNumber).ToList(); | |
return _unitOfWork.ExpedientesEstadosRepository.GetAll().ToList(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment