public async Task <IActionResult> Put(int id, Side side, [FromBody] DiffRequest diff) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } await _service.AddDiffAsync(id, side, diff); return(StatusCode((int)HttpStatusCode.Created)); }