@@ -68,6 +68,7 @@ public AcquisitionFileController(IAcquisitionFileService acquisitionService, ICo
68
68
[ Produces ( "application/json" ) ]
69
69
[ ProducesResponseType ( typeof ( AcquisitionFileModel ) , 200 ) ]
70
70
[ SwaggerOperation ( Tags = new [ ] { "acquisitionfile" } ) ]
71
+ [ TypeFilter ( typeof ( NullJsonResultFilter ) ) ]
71
72
public IActionResult GetAcquisitionFile ( long id )
72
73
{
73
74
// RECOMMENDED - Add valuable metadata to logs
@@ -109,6 +110,7 @@ public IActionResult GetLastUpdatedBy(long id)
109
110
[ Produces ( "application/json" ) ]
110
111
[ ProducesResponseType ( typeof ( AcquisitionFileModel ) , 200 ) ]
111
112
[ SwaggerOperation ( Tags = new [ ] { "acquisitionfile" } ) ]
113
+ [ TypeFilter ( typeof ( NullJsonResultFilter ) ) ]
112
114
public IActionResult AddAcquisitionFile ( [ FromBody ] AcquisitionFileModel model , [ FromQuery ] string [ ] userOverrideCodes )
113
115
{
114
116
_logger . LogInformation (
@@ -136,6 +138,7 @@ public IActionResult AddAcquisitionFile([FromBody] AcquisitionFileModel model, [
136
138
[ ProducesResponseType ( typeof ( AcquisitionFileModel ) , 200 ) ]
137
139
[ ProducesResponseType ( typeof ( ErrorResponseModel ) , 409 ) ]
138
140
[ SwaggerOperation ( Tags = new [ ] { "acquisitionfile" } ) ]
141
+ [ TypeFilter ( typeof ( NullJsonResultFilter ) ) ]
139
142
public IActionResult UpdateAcquisitionFile ( long id , [ FromBody ] AcquisitionFileModel model , [ FromQuery ] string [ ] userOverrideCodes )
140
143
{
141
144
_logger . LogInformation (
@@ -161,6 +164,7 @@ public IActionResult UpdateAcquisitionFile(long id, [FromBody] AcquisitionFileMo
161
164
[ Produces ( "application/json" ) ]
162
165
[ ProducesResponseType ( typeof ( AcquisitionFileModel ) , 200 ) ]
163
166
[ SwaggerOperation ( Tags = new [ ] { "acquisitionfile" } ) ]
167
+ [ TypeFilter ( typeof ( NullJsonResultFilter ) ) ]
164
168
public IActionResult UpdateAcquisitionFileProperties ( [ FromBody ] AcquisitionFileModel acquisitionFileModel , [ FromQuery ] string [ ] userOverrideCodes )
165
169
{
166
170
var acquisitionFileEntity = _mapper . Map < Dal . Entities . PimsAcquisitionFile > ( acquisitionFileModel ) ;
@@ -177,6 +181,7 @@ public IActionResult UpdateAcquisitionFileProperties([FromBody] AcquisitionFileM
177
181
[ Produces ( "application/json" ) ]
178
182
[ ProducesResponseType ( typeof ( IEnumerable < AcquisitionFilePropertyModel > ) , 200 ) ]
179
183
[ SwaggerOperation ( Tags = new [ ] { "acquisitionfile" } ) ]
184
+ [ TypeFilter ( typeof ( NullJsonResultFilter ) ) ]
180
185
public IActionResult GetAcquisitionFileProperties ( long id )
181
186
{
182
187
var acquisitionFileProperties = _acquisitionService . GetProperties ( id ) ;
@@ -193,6 +198,7 @@ public IActionResult GetAcquisitionFileProperties(long id)
193
198
[ Produces ( "application/json" ) ]
194
199
[ ProducesResponseType ( typeof ( IEnumerable < AcquisitionFileOwnerModel > ) , 200 ) ]
195
200
[ SwaggerOperation ( Tags = new [ ] { "acquisitionfile" } ) ]
201
+ [ TypeFilter ( typeof ( NullJsonResultFilter ) ) ]
196
202
public IActionResult GetAcquisitionFileOwners ( [ FromRoute ] long id )
197
203
{
198
204
var owners = _acquisitionService . GetOwners ( id ) ;
@@ -210,6 +216,7 @@ public IActionResult GetAcquisitionFileOwners([FromRoute] long id)
210
216
[ Produces ( "application/json" ) ]
211
217
[ ProducesResponseType ( typeof ( IEnumerable < AcquisitionFileTeamModel > ) , 200 ) ]
212
218
[ SwaggerOperation ( Tags = new [ ] { "acquisitionfile" } ) ]
219
+ [ TypeFilter ( typeof ( NullJsonResultFilter ) ) ]
213
220
public IActionResult GetAcquisitionTeamMembers ( )
214
221
{
215
222
var team = _acquisitionService . GetTeamMembers ( ) ;
@@ -243,6 +250,7 @@ public IActionResult GetFileCompensations(long id)
243
250
[ Produces ( "application/json" ) ]
244
251
[ ProducesResponseType ( typeof ( IEnumerable < CompensationFinancialModel > ) , 200 ) ]
245
252
[ SwaggerOperation ( Tags = new [ ] { "comp-req-h120s" } ) ]
253
+ [ TypeFilter ( typeof ( NullJsonResultFilter ) ) ]
246
254
public IActionResult GetFileCompReqH120 ( long id , bool ? finalOnly )
247
255
{
248
256
_logger . LogInformation (
@@ -269,6 +277,7 @@ public IActionResult GetFileCompReqH120(long id, bool? finalOnly)
269
277
[ Produces ( "application/json" ) ]
270
278
[ ProducesResponseType ( typeof ( CompensationRequisitionModel ) , 201 ) ]
271
279
[ SwaggerOperation ( Tags = new [ ] { "compensation-requisition" } ) ]
280
+ [ TypeFilter ( typeof ( NullJsonResultFilter ) ) ]
272
281
public IActionResult AddCompensationRequisition ( [ FromRoute ] long id , [ FromBody ] CompensationRequisitionModel compensationRequisition )
273
282
{
274
283
_logger . LogInformation (
@@ -323,6 +332,7 @@ public IActionResult GetAcquisitionFileExpropriationPayments([FromRoute] long id
323
332
[ Produces ( "application/json" ) ]
324
333
[ ProducesResponseType ( typeof ( ExpropriationPaymentModel ) , 201 ) ]
325
334
[ SwaggerOperation ( Tags = new [ ] { "expropriation-payments" } ) ]
335
+ [ TypeFilter ( typeof ( NullJsonResultFilter ) ) ]
326
336
public IActionResult AddExpropriationPayment ( [ FromRoute ] long id , [ FromBody ] ExpropriationPaymentModel expropriationPayment )
327
337
{
328
338
_logger . LogInformation (
0 commit comments