예제 #1
0
        public static MvcHtmlString DropDownListForUsers(this HtmlHelper htmlHelper, string name)
        {
            DrugAdminLogic bl      = new DrugAdminLogic();
            string         options = "";

            foreach (var user in bl.listMedicine())
            {
                options += $"<option value ='{user.Name}'> {user.Name} </option>";
            }
            return(new MvcHtmlString($"<select  name={name} style='color:black'>{options}</select>"));
        }
예제 #2
0
 public MedicineModel()
 {
     Medicines = dl.listMedicine();
 }