public async Task <IActionResult> PutAzureCilogsDetails(int id, AzureCilogsDetails azureCilogsDetails) { if (id != azureCilogsDetails.Id) { return(BadRequest()); } _context.Entry(azureCilogsDetails).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!AzureCilogsDetailsExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <ActionResult <AzureCilogsDetails> > PostAzureCilogsDetails(AzureCilogsDetails azureCilogsDetails) { _context.AzureCilogsDetails.Add(azureCilogsDetails); await _context.SaveChangesAsync(); return(CreatedAtAction("GetAzureCilogsDetails", new { id = azureCilogsDetails.Id }, azureCilogsDetails)); }