コード例 #1
0
        public async Task <ActionResult <EntitiesResponse <EntryType> > > Deactivate([FromBody] List <int> ids, [FromQuery] DeactivateArguments args)
        {
            var serverTime = DateTimeOffset.UtcNow;
            var result     = await _service.Deactivate(ids : ids, args);

            var response = TransformToEntitiesResponse(result, serverTime, cancellation: default);

            return(Ok(response));
        }
コード例 #2
0
ファイル: EntryTypesController.cs プロジェクト: lulzzz/tellma
 public async Task <ActionResult <EntitiesResponse <EntryType> > > Deactivate([FromBody] List <int> ids, [FromQuery] DeactivateArguments args)
 {
     return(await ControllerUtilities.InvokeActionImpl(async() =>
     {
         var serverTime = DateTimeOffset.UtcNow;
         var(data, extras) = await _service.Deactivate(ids: ids, args);
         var response = TransformToEntitiesResponse(data, extras, serverTime, cancellation: default);
         return Ok(response);
     }, _logger));
 }