public ActionResult Add(string decision, string reason, string identifier) { var flaw = new ProductFlawType() { Decision = decision, Reason = reason, Identifier = identifier }; this.FlawService.Add(flaw); return(new EmptyResult()); }
/// <summary> /// Deletes the specified product. /// </summary> /// <param name="flaw">The flaw.</param> public void Delete(ProductFlawType flaw) { this.Repository.Delete(flaw); this.Repository.SaveChanges(); }
/// <summary> /// Updates the specified product. /// </summary> /// <param name="product">The product.</param> public void Update(ProductFlawType flaw) { this.Repository.SaveChanges(); }
/// <summary> /// Adds the specified product. /// </summary> /// <param name="flaw">The flaw.</param> public void Add(ProductFlawType flaw) { this.Repository.Add(flaw); this.Repository.SaveChanges(); }