コード例 #1
0
        public async Task <ActionResult> Destroy(Guid id)
        {
            try
            {
                Logger.LogInformation("Destroying {Id}", id);
                await PromoService.Destroy(id);

                return(Ok());
            }
            catch (Exception e)
            {
                Logger.LogInformation("Destroy exception {Exception}", e.ToString());
                return(BadRequest(e));
            }
        }