public IHttpActionResult PostClientes(Clientes clientes) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } clientes = clientesService.Create(clientes); return(CreatedAtRoute("DefaultApi", new { id = clientes.Id }, clientes)); }
public IHttpActionResult PostClientes(Clientes clientes) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } clientes = clientesService.Create(clientes); return(CreatedAtRoute("DefaultApi", new { id = clientes.Id }, clientes)); }