public int CreateBook(CreateBookParameters parameters) { return(new SqlQuery(Settings).ExecuteNonQuery( query: "CreateBook", parameters: _ => { if (parameters == null) { return; } _.AddWithValue("@AppUserId", parameters.AppUserId); _.AddWithValue("@Title", parameters.Title); _.AddWithValue("@Author", parameters.Author); _.AddWithValue("@Comment", parameters.Comment); } )); }
public Book Create(CreateBookParameters parameters) { throw new System.NotImplementedException(); }
public ActionResult <Book> Create(CreateBookParameters parameters) { return(Created("", Service.Create(parameters))); }