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