public async Task <IActionResult> PutContactDetail(int id, ContactDetail contactDetail) { if (id != contactDetail.Id) { return(BadRequest()); } _context.Entry(contactDetail).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ContactDetailExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutLeadInformation(int id, LeadInformation leadInformation) { if (id != leadInformation.Id) { return(BadRequest()); } _context.Entry(leadInformation).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!LeadInformationExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }