Example #1
0
        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());
        }
Example #2
0
 /// <summary>
 /// Deletes the specified product.
 /// </summary>
 /// <param name="flaw">The flaw.</param>
 public void Delete(ProductFlawType flaw)
 {
     this.Repository.Delete(flaw);
     this.Repository.SaveChanges();
 }
Example #3
0
 /// <summary>
 /// Updates the specified product.
 /// </summary>
 /// <param name="product">The product.</param>
 public void Update(ProductFlawType flaw)
 {
     this.Repository.SaveChanges();
 }
Example #4
0
 /// <summary>
 /// Adds the specified product.
 /// </summary>
 /// <param name="flaw">The flaw.</param>
 public void Add(ProductFlawType flaw)
 {
     this.Repository.Add(flaw);
     this.Repository.SaveChanges();
 }