using ADSUtileriasService.Helpers; using ADSNetLibrary.SIGAPI.Models; using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel; using System.Text; using System.Threading.Tasks; namespace ADSUtileriasService.Servicios { [ServiceContract] public interface IUtileriasService { [OperationContract] List GetChecadores(int cveSubProyecto); [OperationContract] List GETPersonal(int cveSubProyecto); } class UtileriasService: IUtileriasService { public List GetChecadores(int cveSubProyecto) { ResponseModel> retorno = new ResponseModel>(); using (Helpers.ADSSqlite.SqlLiteBase bd = new Helpers.ADSSqlite.SqlLiteBase()) { Conexion.Local.RHRepository rhrepo = new Conexion.Local.RHRepository(bd); retorno.Result = rhrepo.GETChecadores(cveSubProyecto); } return retorno.Result; } public List GETPersonal(int cveSubProyecto) { ResponseModel> retorno = new ResponseModel>(); using (Helpers.ADSSqlite.SqlLiteBase bd = new Helpers.ADSSqlite.SqlLiteBase()) { Conexion.Local.RHRepository rhrepo = new Conexion.Local.RHRepository(bd); retorno.Result = rhrepo.GETPersonal(cveSubProyecto); } return retorno.Result; } } }