Пример #1
0
 public IHttpActionResult Put([FromUri] int id, [FromBody] KeyGeneratorDTO KeyGenerator)
 {
     KeyGeneratorService.PrePutDTO(ModelState, currentClient, id, KeyGenerator);
     return(Ok());
 }
Пример #2
0
 public KeyGeneratorDTO Post([FromBody] KeyGeneratorDTO KeyGenerator)
 {
     return(KeyGeneratorService.PrePostDTO(ModelState, currentClient, KeyGenerator));
 }