Exemplo n.º 1
0
 public string SaveEmployee(List <EmployeeATT> obj, string role)
 {
     try
     {
         DLLEmployee dllparameter = new DLLEmployee();
         return(dllparameter.SaveEmployee(obj, role));
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }
Exemplo n.º 2
0
        public string SaveEmployee(ATTEmployee objEmployee)
        {
            string msg = "";

            try
            {
                DLLEmployee dlEmployee = new DLLEmployee();
                msg = dlEmployee.SaveEmployee(objEmployee);
            }
            catch (Exception ex)
            {
                msg = ex.Message;
            }
            return(msg);
        }
Exemplo n.º 3
0
        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);
        }