public Task <string> UpdateRFAStatus(long id, RFAStatus status) { return(_requestProvider.BuildUpon(_url) .Uri($"/api/rfa/{id}/status") .Method(HttpMethod.Put) .AddInterceptor(new JsonDeserializerInterceptor()) .AddParam("status", status.ToString()) .Execute <string>()); }
public UpdateRFAStatusCommand(long id, Guid userID, string username, RFAStatus rfastatus, IEventBus eventBus) { _id = id; _userID = userID; _userName = username; _rfastatus = rfastatus; _eventBus = eventBus; }
public async Task UpdateRFAStatus(long id, RFAStatus rfaStatus, Guid userID, string username) { var param = new DynamicParameters(); param.Add("@ID", id); param.Add("@Status", rfaStatus); param.Add("@UserID", userID); param.Add("@UserName", username); await SqlMapper.ExecuteAsync(_unitOfWork.Connection, "UpdateRFAStatus", param, commandType : CommandType.StoredProcedure, transaction : _unitOfWork.Transaction); }
public async Task UpdateRFAStatus(long id, RFAStatus rfaStatus, Guid userid, string username) { await Execute(new UpdateRFAStatusCommand(id, userid, username, rfaStatus, _eventBus)); }
public async Task <string> Put(long id, RFAStatus status, Guid userID, string userName) { await _rfaservice.UpdateRFAStatus(id, status, userID, userName); return("success"); }