protected void loadEmployeeDetail() { BLLEmployee objbllRelType = new BLLEmployee();; GridView1.DataSource = objbllRelType.GetEmployee(1); GridView1.DataBind(); }
public object GetEmployee() { JsonResponse response = new JsonResponse(); BLLEmployee bllEmployee = new BLLEmployee(); response = bllEmployee.GetEmployee(); return(JsonUtility.Serialize(response)); }
// GET api/employee/5 public BOEmployee Get(int id) { try { return(BLLEmployee.GetEmployee(id)); } catch (Exception) { return(new BOEmployee()); } }