public IHttpActionResult Post(Product product) { _uow.Products.Add(product); _uow.Commit(); return(Ok(product)); }
public IHttpActionResult Post(Recipe recipe) { _uow.Recipes.Add(recipe); _uow.Commit(); // Return the new recipe return(Ok(recipe)); }
public IHttpActionResult Post(Category category) { _uow.Categories.Add(category); _uow.Commit(); // Return the new object return(Ok(category)); }