예제 #1
0
 /// <summary>
 /// Récupère une liste d'utilisateur selon un role.
 /// </summary>
 /// <param name="roleName"></param>
 /// <returns></returns>
 List <UserDTO> IRoleEngine.Ger_Users_With_Role(string roleName)
 {
     using (CarRentalEntities context = new CarRentalEntities())
     {
         try
         {
             return(userMapping.MapToListUserDTO(context.usp_Role_GET_List_Users_BY_Libelle(roleName).ToList()));
         }
         catch (Exception)
         {
             throw;
         }
     }
 }