Exemplo n.º 1
0
 public static void DDLCountry(Controller _controller, string key = "Title", string value = "Title", object selected = null)
 {
     using (var objBLL = new MasterBLL())
     {
         _controller.ViewBag.Countries = new SelectList(objBLL.GetCountries(), key, value, selected);
     }
 }