public async Task <ActionResult <Profile> > GetBlogsByProfile(string id) { try { Profile userInfo = await HttpContext.GetUserInfoAsync <Profile>(); return(Ok(_bs.GetBlogsByProfile(id, userInfo?.Id))); } catch (System.Exception e) { return(BadRequest(e.Message)); } }