public ActionResult Search(SearchModel searchData)
        {
            MedicamenteRepository r = new MedicamenteRepository();

            List <MedicamenteModel> foundMedicamente = r.Search(searchData.Text);

            return(View("List", foundMedicamente));
        }
        public ActionResult Add(MedicamenteModel medicament)
        {
            MedicamenteRepository r = new MedicamenteRepository();

            r.Add(medicament);

            return(View("SuccesfulAdd"));
        }
        public ActionResult List()
        {
            MedicamenteRepository r = new MedicamenteRepository();

            List <MedicamenteModel> myMedicamente = r.GetAll();

            return(View(myMedicamente));
        }
        public ActionResult Delete(int id)
        {
            MedicamenteRepository r = new MedicamenteRepository();

            r.Delete(id);
            List <MedicamenteModel> myMedicamente = r.GetAll();



            return(View("List", myMedicamente));
        }