public IActionResult Delete(long id) { try { var result = _magazineService.Delete(id); return(Ok(result)); } catch (BusinessLogicException exception) { return(BadRequest(exception.Message)); } catch (Exception exception) { _logger.LogInformation(exception.Message); return(StatusCode((int)HttpStatusCode.InternalServerError)); } }
public IActionResult Delete(int id) { _magazineService.Delete(id); return(Ok()); }
public async Task <IActionResult> Delete(int id) { await _magazineService.Delete(id); return(Ok()); }