public ActionResult GetDetailPost(long postId) { if (!Request.Headers.ContainsKey("Authorization")) { return(Unauthorized()); } var data = _alphahomeService.GetDetailPost(postId); return(new JsonResult(data)); }
public ActionResult GetDetailPost(long postId) { var data = _alphahomeService.GetDetailPost(postId); return(Ok(data)); }