36 lines
975 B
C#
36 lines
975 B
C#
using projet.dal;
|
|
using projet.modele;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace projet.Controller
|
|
{
|
|
/// <summary>
|
|
/// Gestionnaire de la page de connexion pour les responsables.
|
|
/// </summary>
|
|
public class PageConnexionController
|
|
{
|
|
private readonly ResponsableAccess responsableAccess;
|
|
|
|
/// <summary>
|
|
/// Récupère l'accès aux données des responsables.
|
|
/// </summary>
|
|
public PageConnexionController()
|
|
{
|
|
responsableAccess = new ResponsableAccess();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Connecte un responsable à l'application.
|
|
/// </summary>
|
|
/// <param name="responsable"></param>
|
|
/// <returns></returns>
|
|
public bool ConnecterResponsable(Responsable responsable)
|
|
{
|
|
return responsableAccess.ConnecterResponsable(responsable);
|
|
}
|
|
}
|
|
}
|