Exemple #1
0
        public static MvcHtmlString DropDownListForMedicinesName(this HtmlHelper htmlHelper)
        {
            IBL    bl      = new BlClass();
            string options = $"<option disabled selected>בחר שם גנרי</option>";
            IEnumerable <MedicineWrraper> ndc = bl.GetAllNDC();

            foreach (var number in ndc)
            {
                options += $"<option value ='{number.genericName}'>{number.genericName}</option>";
            }
            return(new MvcHtmlString($"<select class='form-control'>{options}</select>"));
        }