public async Task <IActionResult> DoActionOnTimer(string timerId, [FromQuery] TimerAction action) { if (timerId.IsNullOrEmpty()) { return(BadRequest($"{nameof(timerId)} must be specified!")); } var userId = HttpContext.User.Identity.Name; await timerService.DoActionOnTimer(userId, timerId, action).ConfigureAwait(false); return(NoContent()); }