常用方法
常用方法
常用方法
常用方法
public IHttpActionResult Book(int id) { var book = _library.GetBook(id); if (book != null) { return(Ok(book)); } return(BadRequest("Bad book id, book not found :(")); }
public IHttpActionResult Book(int id) { var book = _library.GetBook(id); if (book != null) { return(Ok(book)); } return(BadRequest("Bad book id, book not found :(")); }