常用方法
常用方法
常用方法
常用方法
public IActionResult AddPost([FromBody] PostEntity post) { try { _feedService.AddPost(post); return(Created("addPost", post)); } catch { return(BadRequest()); } }
public IActionResult AddPost([FromBody] PostEntity post) { try { _feedService.AddPost(post); return(Created("addPost", post)); } catch { return(BadRequest()); } }