コード例 #1
0
 private Response GetShiftData(GetShiftDataDataRequest request)
 {
     using (SqliteDatabaseContext databaseContext = new SqliteDatabaseContext(request.RequestContext))
     {
         GetShiftDataProcedure procedure = new GetShiftDataProcedure(request.Criteria, databaseContext);
         return(procedure.Execute());
     }
 }
コード例 #2
0
 /// <summary>
 /// The data service method to get the shift data.
 /// </summary>
 /// <param name="request">The get shift data request.</param>
 /// <returns>A response.</returns>
 private Response GetShiftData(GetShiftDataDataRequest request)
 {
     using (SqlServerDatabaseContext databaseContext = new SqlServerDatabaseContext(request))
     {
         GetShiftDataProcedure procedure = new GetShiftDataProcedure(request, databaseContext);
         return(procedure.Execute(request.QueryResultSettings));
     }
 }