public CaseDismissCommand(long caseID, CaseDismissParam data, Officer user, IEventBus eventBus) { _caseID = caseID; _data = data; _user = user; _eventBus = eventBus; }
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>()); }
public async Task <long> CaseDismiss(long id, CaseDismissParam data, Guid userID, string username) { return(await _caseService.CaseDismiss(id, data, new Officer(userID, username))); }
public async Task <long> CaseDismiss(long id, [FromBody] CaseDismissParam data) { return(await _caseService.CaseDismiss(id, data)); }
public async Task <long> CaseDismiss(long caseID, CaseDismissParam data) { return(await _apiClient.CaseSdk.CaseDismiss(caseID, data)); }
public async Task <long> CaseDismiss(long caseID, CaseDismissParam data, Officer user) { return(await Execute(new CaseDismissCommand(caseID, data, user, _eventBus))); }