Ejemplo n.º 1
0
        public JsonResult GetDropdown(string type, int?id = null, string ids = null, string search = null)
        {
            List <DropDownViewModal> dropDownList = new List <DropDownViewModal>();
            IDropDownBL dropdownBL = new DropDownEngine();

            try
            {
                dropDownList = dropdownBL.GetList(type, id, ids, search);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(Json(dropDownList, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        public JsonResult SearchFilters(string type, string search)
        {
            IDropDownBL dropdown = new DropDownEngine();
            List <DropDownViewModal> expertiseViewModel = new List <DropDownViewModal>();

            try
            {
                string type_string = "";
                if (type == "expertise")
                {
                    type_string = "expertise_dropdown";
                }
                if (type == "locality")
                {
                    type_string = "city_dropdown";
                }
                expertiseViewModel = dropdown.GetList(type_string, null, null, search);
            }
            catch (Exception ex)
            {
            }
            return(Json(expertiseViewModel, JsonRequestBehavior.AllowGet));
        }