コード例 #1
0
        public async Task <IActionResult> DeleteAsync(CancellationToken cancellationToken, params long[] ids)
        {
            _logger.LogInformation("Portfolios/DeleteAsync was requested.");
            await _portfolioService.DeleteAsync(ids);

            return(NoContent());
        }
コード例 #2
0
        public async Task <IActionResult> Delete(string isin, DateTime date)
        {
            var result = await portfolioService.DeleteAsync(isin, date);

            if (result.ResultType == Common.Enums.ServiceResultType.Success)
            {
                return(Ok(result.Message));
            }

            return(BadRequest(result.Message));
        }