Esempio n. 1
0
 public CaseDismissCommand(long caseID, CaseDismissParam data, Officer user, IEventBus eventBus)
 {
     _caseID   = caseID;
     _data     = data;
     _user     = user;
     _eventBus = eventBus;
 }
Esempio n. 2
0
 public async Task <long> CaseDismiss(long caseID, CaseDismissParam data)
 {
     return(await _requestProvider.BuildUpon(_url)
            .Uri($"/api/case/{caseID}/dismiss")
            .Method(HttpMethod.Post)
            .Content(new JsonContent(data))
            .AddInterceptor(new JsonDeserializerInterceptor())
            .Execute <long>());
 }
Esempio n. 3
0
 public async Task <long> CaseDismiss(long id, CaseDismissParam data,
                                      Guid userID, string username)
 {
     return(await _caseService.CaseDismiss(id, data, new Officer(userID, username)));
 }
Esempio n. 4
0
 public async Task <long> CaseDismiss(long id, [FromBody] CaseDismissParam data)
 {
     return(await _caseService.CaseDismiss(id, data));
 }
Esempio n. 5
0
 public async Task <long> CaseDismiss(long caseID, CaseDismissParam data)
 {
     return(await _apiClient.CaseSdk.CaseDismiss(caseID, data));
 }
Esempio n. 6
0
 public async Task <long> CaseDismiss(long caseID, CaseDismissParam data, Officer user)
 {
     return(await Execute(new CaseDismissCommand(caseID, data, user, _eventBus)));
 }