/// <summary> /// /// </summary> /// <returns></returns> List <UserDTO> IUtilisateurEngine.ListAll() { using (CarRentalEntities contexte = new CarRentalEntities()) { return(UserMapping.MapToListUserDTO(contexte.usp_User_List_All().ToList <User>())); } }
/// <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; } } }