public Response <IEnumerable <TableColumn> > GetApplicationConfig() { Response <IEnumerable <TableColumn> > response = new Response <IEnumerable <TableColumn> >(); try { ConfigAccessor accessor = new ConfigAccessor(); response.Result = accessor.GetApplicationConfig(null, null); response.IsSuccess = true; } catch (Exception ex) { LogError(ex); response.IsSuccess = false; response.ErrorCode = ErrorCode.Technical; } return(response); }
public Response <IEnumerable <TableColumn> > GetApplicationConfigNew(long?ProjectID, long?CustomerID) { Response <IEnumerable <TableColumn> > response = new Response <IEnumerable <TableColumn> >(); try { ConfigAccessor accessor = new ConfigAccessor(); response.Result = accessor.GetApplicationConfig(ProjectID, CustomerID); response.IsSuccess = true; } catch (Exception ex) { LogError(ex); response.IsSuccess = false; response.ErrorCode = ErrorCode.Technical; } return(response); }