コード例 #1
0
 // POST api/Customer
 public HttpResponseMessage Post([FromBody] Customer value)
 {
     if (null != value)
     {
         return(Request.CreateResponse <Customer>(HttpStatusCode.Created, _UsuarioServicio.Insert(value)));
     }
     return(Request.CreateResponse <Customer>(HttpStatusCode.NotFound, value));
 }
コード例 #2
0
 public Customer Add(Customer customer)
 {
     return(_usuarioServicio.Insert(customer));
 }