using CD67.ModeleMVC.Entity;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CD67.ModeleMVC.Factory
{
public partial class TypeVikingFactory
{
/////
///// Constructeur public lié au constructeur de base
/////
///// Context Entity Framework utilisé dans la classe
//public TypeVikingFactory(ModeleMVCEntities dbContext) : base(dbContext) { }
///
/// Retourne une liste d'objets selon des paramètres
///
/// Liste d'objets
public Dictionary getManyBy(int TypeId)
{
//cas de sortie directe
if (TypeId == -1) return new Dictionary();
//liste fictive utilisant le type passé en entrée
return new Dictionary()
{
{ 1, $"Type-{TypeId} Toto" },
{ 2, $"Type-{TypeId} Tata" },
{ 3, $"Type-{TypeId} Tutu" }
};
}
}
}