public async Task <IActionResult> PutApplication(Guid id, Application application) { if (id != application.ApplicationId) { return(BadRequest()); } _context.Entry(application).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ApplicationExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutSpecialRequirement(int id, SpecialRequirement specialRequirement) { if (id != specialRequirement.SpecialRequirementId) { return(BadRequest()); } _context.Entry(specialRequirement).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!SpecialRequirementExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }