public Customerr Put(Guid customerID, [FromBody] Customerr customer) { customer.CustomerID = customerID; foreach (Customerr c in Customerr.ListCustomer) { if (c.CustomerID == customerID) { int k = Customerr.ListCustomer.IndexOf(c); Customerr.ListCustomer[k] = customer; return(Customerr.ListCustomer[k]); } } return(null); }
public void Post([FromBody] Customerr customer) { Customerr.ListCustomer.Add(customer); return; }