Beispiel #1
0
 // PUT: api/Company/5
 //[HttpPut("{id}")]
 //[ProducesResponseType(StatusCodes.Status200OK)]
 //[ProducesResponseType(StatusCodes.Status400BadRequest)]
 public IActionResult Put(long id, [FromBody] Company value)
 {
     value.Id = id;
     if (CompanyProvider.Set(value))
     {
         return(Ok());
     }
     else
     {
         return(BadRequest());
     }
 }