Example #1
0
        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));
        }