Example #1
0
 public IHttpActionResult Put(int id, [FromBody] WebShop3.Models.Attribute attribute)
 {
     return(Ok(new GenericRepository <WebShop3.Models.Attribute>().Update(attribute)));
 }
Example #2
0
 public IHttpActionResult Post([FromBody] WebShop3.Models.Attribute attribute)
 {
     attribute.ID = new GenericRepository <WebShop3.Models.Attribute>().Insert(attribute);
     return(Ok(attribute));
 }