Ejemplo n.º 1
0
        public async Task <JsonResult> DropDownEmployee()
        {
            dynamic result;

            try
            {
                result = await repo.DropDownEmployee();
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(Json(new SelectList((result), "Id", "Name"), JsonRequestBehavior.AllowGet));
        }