public async Task <IActionResult> PutRegistrationDetail(int id, RegistrationDetail registrationDetail) { if (id != registrationDetail.Id) { return(BadRequest()); } _context.Entry(registrationDetail).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!RegistrationDetailExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutAssignedProjectDetail(int id, AssignedProject assignedProject) { if (id != assignedProject.Id) { return(BadRequest()); } _context.Entry(assignedProject).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!AssignedProjectDetailExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }