Sunteți pe pagina 1din 1

[Code Flow - API Controller method for Getting Images by work order Id ]

---------------------------------------------------------------------------0). GetImagesByWo(string workOrderNumber) [Work Order Controller -->


ty.API.Controllers.Api.WorkOrderController ]

DTZMobili

- The Above method is available to the DTZ Mobility clients as a REST API method
. It's secured since the workordercontroller ,which extens the apiController its
elf is secured using the attribute [DtzAuthorize]
- [DtzAuthorize] is a Custom annotation that extends from the System.Web.Http.Au
thorizeAttribute class which makes sure all the HTTP Rest based requests
to the WorkOrderController are Authorized.
1). GetWorkOrderImages (int workOrderId) [ Work Order Controller --> DTZMobilit
y.API.Controllers.Api.WorkOrderController ]
- This is the method called by the GetImagesByWo method in turn to do the actual
querying of the database.
2).

_imageService.Search(new ImageSearchQuery { BaseEntity = workOrder });

- This is the method called by the GetWorkOrderImages method [ Work Order Contro
ller --> DTZMobility.API.Controllers.Api.WorkOrderController ]

S-ar putea să vă placă și