Exemplo n.º 1
0
 public JsonResult AddEmployeeEducation(EmployeeEducationModel model)
 {
     try
     {
         var result   = EmployeeBusiness.AddEmployeeEducation(model);
         var response = new ApiRespnoseWrapper {
             status = ApiRespnoseStatus.Success, results = new ArrayList()
             {
                 result
             }
         };
         return(new JsonResult {
             Data = response
         });
     }
     catch (Exception ex)
     {
         return(CommonBusiness.GetErrorResponse(ex.Message));
     }
 }