public List <EmployeeATT> GetEmployee(int ExpItmId, string Visibility, string p_rc, string role) { try { DLLEmployee obj = new DLLEmployee(); return(obj.GetEmployee(ExpItmId, Visibility, p_rc, role)); } catch (Exception ex) { throw (ex); } }
public List <ATTEmployee> GetEmployee(int?empID) { List <ATTEmployee> lst = new List <ATTEmployee>(); DLLEmployee dlEmployee = new DLLEmployee(); try { lst = dlEmployee.GetEmployee(empID); } catch (Exception ex) { //throw(ex); } return(lst); }
public JsonResponse GetEmployee() { JsonResponse response = new JsonResponse(); try { DLLEmployee objDLL = new DLLEmployee(); response.ResponseData = objDLL.GetEmployee(); response.IsSuccess = true; } catch (Exception ex) { response.Message = ex.Message; response.IsSuccess = false; } return(response); }