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)); }
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)); }