Blog.Web.Api.Controllers.PostContentController.Delete C# (CSharp) Method

Delete() private method

private Delete ( int postContentId ) : IHttpActionResult
postContentId int
return IHttpActionResult
        public IHttpActionResult Delete(int postContentId)
        {
            try
            {
                _postContentsSvc.Delete(postContentId);
                return Ok(true);
            }
            catch (Exception ex)
            {
                _errorSignaler.SignalFromCurrentContext(ex);
                return BadRequest();
            }
        }
    }