Exemple #1
0
        public async Task <IActionResult> DeleteAsync(int id)
        {
            var result = await _subscribeService.DeleteAsync(id);

            if (!result.Success)
            {
                return(BadRequest(result.Message));
            }

            var subscribeResource = _mapper.Map <Subscribe, SubscribeResource>(result.Subscribe);

            return(Ok(subscribeResource));
        }