Esempio n. 1
0
 public HttpResponseMessage ListMasterDataEntities()
 {
     var response = new ResponseCostCentreSyncTables();
     _logger.Info("ListMasterDataEntities");
     response.TablesToSync = _clientMasterDataTrackerRepository.RepositoryList();
     return Request.CreateResponse(HttpStatusCode.OK, response);
 }
 public JsonResult ListMasterDataEntities()
 {
     _log.Info("ListMasterDataEntities............");
     ResponseCostCentreSyncTables response = null;
     try
     {
         response = _pullMasterDataResponseBuilder.RepositoryList();
     }
     catch (Exception ex)
     {
         response = new ResponseCostCentreSyncTables { ErrorInfo = "ListMasterDataEntities failed" };
         _log.Error(ex);
     }
     return Json(response, JsonRequestBehavior.AllowGet);
 }