Пример #1
0
        public async Task <IActionResult> Put(int id, [FromForm] AssignmentDtoForEdit assignment)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _response = await _repo.EditAssignment(id, assignment);

            return(Ok(_response));
        }