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)); }
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)); }