Example #1
0
        public IActionResult Update(int requestId, [FromBody] Request model)
        {
            if (model == null || requestId != model.Id || !ModelState.IsValid)
            {
                return(BadRequest());
            }

            _repo.Update(model);
            return(CreatedAtAction("Update", model));
        }