Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public void Post([FromBody] Customerr customer)
 {
     Customerr.ListCustomer.Add(customer);
     return;
 }