/// <summary> /// Function to get particular values from Employee table based on the parameter /// </summary> /// <param name="employeeId"></param> /// <returns></returns> public EmployeeInfo EmployeeView(decimal employeeId) { EmployeeInfo infoemployee = new EmployeeInfo(); try { infoemployee = SPEmployee.EmployeeView(employeeId); } catch (Exception ex) { MessageBox.Show("EC8:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(infoemployee); }
public JsonResult GetEmployee(string employeeId) { bool isSuccess = true; string message = "success"; EmployeeInfo info = new EmployeeInfo(); try { EmployeeSP spEmployee = new EmployeeSP(); int nEmployeeId = int.Parse(employeeId); info = spEmployee.EmployeeView(nEmployeeId); } catch (Exception ex) { message = ex.Message; } return(Json(new { isSuccess = isSuccess, message = message, data = info })); }