Version OScar
This commit is contained in:
44
ADSUtileriasService/Servicios/UtileriasService.cs
Normal file
44
ADSUtileriasService/Servicios/UtileriasService.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
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<Modelos.Checador.Checadormodel> GetChecadores(int cveSubProyecto);
|
||||
[OperationContract]
|
||||
List<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal> GETPersonal(int cveSubProyecto);
|
||||
|
||||
}
|
||||
class UtileriasService: IUtileriasService
|
||||
{
|
||||
public List<Modelos.Checador.Checadormodel> GetChecadores(int cveSubProyecto)
|
||||
{
|
||||
ResponseModel<List<Modelos.Checador.Checadormodel>> retorno = new ResponseModel<List<Modelos.Checador.Checadormodel>>();
|
||||
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<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal> GETPersonal(int cveSubProyecto)
|
||||
{
|
||||
ResponseModel<List<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal>> retorno = new ResponseModel<List<ADSNetLibrary.SIGAPI.Models.RH.Response.ResponseGetPersonal>>();
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user