public IHttpActionResult Delete(int id) { var entry = _blogRepo.GetBlogById(id); if (_blogRepo.DeleteBlog(entry) == 1) { return(Ok()); } else { return(NotFound()); } }