public string SaveEmployee(List <EmployeeATT> obj, string role) { try { DLLEmployee dllparameter = new DLLEmployee(); return(dllparameter.SaveEmployee(obj, role)); } catch (Exception ex) { throw (ex); } }
public string SaveEmployee(ATTEmployee objEmployee) { string msg = ""; try { DLLEmployee dlEmployee = new DLLEmployee(); msg = dlEmployee.SaveEmployee(objEmployee); } catch (Exception ex) { msg = ex.Message; } return(msg); }
public JsonResponse SaveEmployee(ATTEmployee objATT) { JsonResponse response = new JsonResponse(); try { DLLEmployee objDLL = new DLLEmployee(); response.ResponseData = objDLL.SaveEmployee(objATT); response.IsSuccess = true; } catch (Exception ex) { response.ResponseData = ex.Message; response.IsSuccess = false; } return(response); }