public ActionResult <IEnumerable <Blog> > GetAllBlogs() { try { IEnumerable <Blog> blogs = _service.GetAllBlogs(); return(Ok(blogs)); } catch (Exception e) { return(BadRequest(e.Message)); } }