internal static void EmpInsertOrEdit(EmpleadoNg emp)
 {
     using (SqlConnection conObj = new SqlConnection(cadConex))
     {
         conObj.Execute("usp_EmpInsertOrEdit", new { emp.id, emp.nombre, emp.descripcion }, commandType: System.Data.CommandType.StoredProcedure);
     }
 }
        internal static EmpleadoNg EmpleadoNgObtenerListadoXId(int?empId)
        {
            EmpleadoNg empObj = null;

            using (SqlConnection conObj = new SqlConnection(cadConex))
            {
                empObj = conObj.Query <EmpleadoNg>("usp_EmpleadoNgObtenerListado", new { empId }, commandType: System.Data.CommandType.StoredProcedure).FirstOrDefault();
            }

            return(empObj);
        }