Пример #1
0
        public void CalculoNHALogicaTest()
        {
            LNConfiguracion conf = new LNConfiguracion();
            // Se comenta esta linea de código,debido a que no permite correr el proyecto

            //var result = conf.AusenciasPorMes("2017", "5", 891400148);
        }
Пример #2
0
        public HttpResponseMessage EliminarConfiguracion(string NitEmpresa, int idConfiguracion)
        {
            try
            {
                var logica = new LNConfiguracion();
                var result = logica.EliminarConfiguracion(NitEmpresa, idConfiguracion);

                var response = Request.CreateResponse(HttpStatusCode.OK, result);
                return(response);
            }
            catch (Exception ex)
            {
                var response = Request.CreateResponse(HttpStatusCode.InternalServerError);
                return(response);
            }
        }
Пример #3
0
 public HttpResponseMessage ObtenerConfiguraciones(string NitEmpresa, int Ano)
 {
     try
     {
         var logica = new LNConfiguracion();
         var result = logica.ObtenerConfiguraciones(NitEmpresa, Ano);
         if (result != null)
         {
             var response = Request.CreateResponse(HttpStatusCode.OK, result);
             return(response);
         }
         else
         {
             var response = Request.CreateResponse(HttpStatusCode.ExpectationFailed);
             return(response);
         }
     }
     catch (Exception ex)
     {
         var response = Request.CreateResponse(HttpStatusCode.InternalServerError);
         return(response);
     }
 }