Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
18f8992
Login API
carminalp Jun 6, 2022
4fcd3f3
Avance CV
alexdennis2001 Jun 7, 2022
579aac8
Avance CV
alexdennis2001 Jun 7, 2022
b76eab4
Avance CV backend
alexdennis2001 Jun 7, 2022
8566a94
CV Backend Terminado
alexdennis2001 Jun 8, 2022
7f9df3b
Se agregaron todas las ciudades
alexdennis2001 Jun 8, 2022
739a84b
JALOOO
alexdennis2001 Jun 8, 2022
04eab5c
ASP REST Preguntas
carminalp Jun 8, 2022
436bd29
CV Terminado!!!
alexdennis2001 Jun 8, 2022
c238286
Merge branch 'main' of https://github.com/geraldineecht/web-developme…
alexdennis2001 Jun 8, 2022
8de451c
Admin_view boton agregado
alexdennis2001 Jun 8, 2022
908cc9c
Arreglitos
alexdennis2001 Jun 8, 2022
8c6075a
Search de Admin_view terminado
alexdennis2001 Jun 9, 2022
0c67e00
Upgrade de Search Admin_view
alexdennis2001 Jun 9, 2022
5feeaff
API Rest Preguntas terminado
carminalp Jun 9, 2022
e58b7d6
Aplicacion terminada!!
alexdennis2001 Jun 9, 2022
6fbcb9f
Ya quedo boton de vacantes
alexdennis2001 Jun 9, 2022
aa8301a
Agregue mas vacantes
alexdennis2001 Jun 10, 2022
8095c16
Funcionalidad boton aun trabajo/estudio aqui
alexdennis2001 Jun 10, 2022
d665625
Aviso de privacidad
carminalp Jun 11, 2022
9000d34
Entrevista Controller
Jun 12, 2022
2437d98
GET Aplicantes
Jun 12, 2022
d7e30a8
correcciones GET
Jun 12, 2022
49c3056
Post Entrevista y Get idAplicante
carminalp Jun 12, 2022
7ff864f
post a void
carminalp Jun 12, 2022
bd83df0
Merge branch 'APIMySQL'
Jun 12, 2022
2782bd4
Merge?
Jun 12, 2022
309c3b1
Corrección info contacto
carminalp Jun 13, 2022
a082106
Conexión api rest bd
carminalp Jun 13, 2022
67d021a
Razor entrevista
carminalp Jun 13, 2022
924e580
Titulo Vacantes
alexdennis2001 Jun 14, 2022
62028e8
Cambio en query
carminalp Jun 14, 2022
4c37c6d
Merge branch 'main' of https://github.com/geraldineecht/web-developme…
carminalp Jun 14, 2022
474cb3d
de publicado a entrevista
RodrigoGarzaV Jun 14, 2022
d4c73e5
Email para buscar id
Jun 15, 2022
42f6a75
Ajustes Finales
alexdennis2001 Jun 15, 2022
2e13cf3
email y id
Jun 15, 2022
0cbed13
Merge branch 'main' of https://github.com/geraldineecht/web-developme…
Jun 15, 2022
a554b82
Terminos y Condiciones
cristina-hdzp Jun 15, 2022
6473561
Pagina de Entrevista
cristina-hdzp Jun 15, 2022
aeed529
Cambio REST API FrontEnd
carminalp Jun 15, 2022
b9d45ec
puntaje
Jun 15, 2022
52a0073
Puntaje
alexdennis2001 Jun 15, 2022
c2f29ad
hover links navbar
Jun 15, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file modified AplicacionWeb/ASP.net/Login/.vs/Atos/v16/.suo
Binary file not shown.
29 changes: 18 additions & 11 deletions AplicacionWeb/ASP.net/Login/.vs/Atos/xs/UserPrefs.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
<Properties StartupConfiguration="{1F23A056-76AD-4009-B3EF-7ADD32F66C64}|Login">
<MonoDevelop.Ide.Workbench ActiveDocument="Login/Pages/Certificaciones.cshtml.cs">
<MonoDevelop.Ide.Workbench ActiveDocument="Login/wwwroot/css/Index.css">
<Files>
<File FileName="Login/Pages/Informacion_personal.cshtml" Line="156" Column="77" />
<File FileName="Login/Pages/Certificaciones.cshtml" Line="103" Column="50" />
<File FileName="Login/Pages/Certificaciones.cshtml.cs" Line="76" Column="14" />
<File FileName="Login/Pages/Admin.cshtml.cs" Line="1" Column="1" />
<File FileName="Login/Pages/Admin_view.cshtml" Line="173" Column="46" />
<File FileName="Login/Pages/Admin_view.cshtml.cs" Line="47" Column="46" />
<File FileName="Login/Model/Usuarios.cs" Line="12" Column="41" />
<File FileName="Login/Pages/Index.cshtml" Line="43" Column="76" />
<File FileName="Login/wwwroot/css/Index.css" Line="228" Column="20" />
</Files>
<Pads>
<Pad Id="ProjectPad">
<State name="__root__">
<Node name="Atos" expanded="True">
<Node name="APIMySQL.Data" expanded="True">
<Node name="Repositories" expanded="True" />
</Node>
<Node name="APIMySQL.Model" expanded="True" />
<Node name="Atos" expanded="True">
<Node name="Controllers" expanded="True" />
<Node name="Model" expanded="True" />
<Node name="Pages" expanded="True">
<Node name="Admin.cshtml" expanded="True" />
<Node name="Admin_view.cshtml" expanded="True" />
<Node name="Certificaciones.cshtml" expanded="True">
<Node name="Certificaciones.cshtml.cs" selected="True" />
<Node name="Vacantes.cshtml" expanded="True" />
</Node>
<Node name="wwwroot" expanded="True">
<Node name="css" expanded="True">
<Node name="Index.css" selected="True" />
</Node>
<Node name="Idiomas.cshtml" expanded="True" />
</Node>
<Node name="wwwroot" expanded="True" />
</Node>
</Node>
</State>
Expand All @@ -28,7 +35,7 @@
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.ItemProperties.Atos PreferredExecutionTarget="/Applications/Google Chrome.app" />
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
<MonoDevelop.Ide.Workspace ActiveConfiguration="Release" />
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
<MonoDevelop.Ide.DebuggingService.Breakpoints>
<BreakpointStore />
</MonoDevelop.Ide.DebuggingService.Breakpoints>
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions AplicacionWeb/ASP.net/Login/APIMySQL.Data/APIMySQL.Data.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\APIMySQL.Model\APIMySQL.Model.csproj" />
</ItemGroup>
<ItemGroup>
<None Remove="Repositories\" />
<None Remove="MySql.Data" />
<None Remove="Dapper" />
</ItemGroup>
<ItemGroup>
<Folder Include="Repositories\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="MySql.Data" Version="8.0.29" />
<PackageReference Include="Dapper" Version="2.0.123" />
</ItemGroup>
</Project>
13 changes: 13 additions & 0 deletions AplicacionWeb/ASP.net/Login/APIMySQL.Data/MySQLConfiguration.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
namespace APIMySQL.Data
{
public class MySQLConfiguration
{
public string ConnectionString { get; set; }

public MySQLConfiguration(string connectionString)
{
ConnectionString = connectionString;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using APIMySQL.Model;

namespace APIMySQL.Data.Repositories
{
public interface AplicanteInterface
{
Task<IEnumerable<Aplicante>> GetAplicantes();
Task<Aplicante> GetAplicante(string correo);
Task<bool> InsertAplicante(Aplicante aplicante);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using APIMySQL.Model;
using Dapper;
using MySql.Data.MySqlClient;

namespace APIMySQL.Data.Repositories
{
public class AplicanteRepository : AplicanteInterface
{
private MySQLConfiguration _connectionString;

public AplicanteRepository(MySQLConfiguration connectionString)
{
_connectionString = connectionString;
}

protected MySqlConnection dbConnection()
{
return new MySqlConnection(_connectionString.ConnectionString);
}

public async Task<IEnumerable<Aplicante>> GetAplicantes()
{
var db = dbConnection();

var sql = @"SELECT * FROM Aplicante";

return await db.QueryAsync<Aplicante>(sql, new { });
}

public async Task<Aplicante> GetAplicante(string correo)
{
var db = dbConnection();

var sql = @"SELECT * FROM Aplicante WHERE Correo = @Correo";

return await db.QueryFirstOrDefaultAsync<Aplicante>(sql, new { Correo = correo });
}

public async Task<bool> InsertAplicante(Aplicante aplicante)
{
var db = dbConnection();

var sql = @"INSERT INTO Aplicante (Nombre, ApellidoP, ApellidoM, Correo)
VALUES (@Nombre, @ApellidoP, @ApellidoM, @Correo)";

var result = await db.ExecuteAsync(sql, new { aplicante.Nombre, aplicante.ApellidoP, aplicante.ApellidoM, aplicante.Correo });

return result > 0;
}

}
}
Loading