Ejemplo n.º 1
0
        // GET: Information
        public ActionResult Index()
        {
            IServiceDisease       service = new ServiceDisease();
            ICollection <Disease> myliste = service.GetAll();

            return(View(myliste));
        }
Ejemplo n.º 2
0
        // GET: Alerte/Create
        public ActionResult Create()
        {
            AlerteVM        avm            = new AlerteVM();
            IServiceDisease servicealerte  = new ServiceDisease();
            IServiceSymptom servicesymptom = new ServiceSymptom();

            avm.AllDisease = (ICollection <Disease>)servicealerte.GetAll();
            foreach (var x in avm.AllDisease)
            {
                x.Symptoms = servicesymptom.GetByDisease(x);
            }
            return(View(avm));
        }