public async Task <ActionResult <Furs2Feathers.Domain.Models.Claims> > DeleteClaims(int id) { var claims = await claimsRepo.FindAsyncAsNoTracking(id); // get this claims matching this id // with tracking there are id errors even with just one row in the database so using AsNoTracking instead if (claims == null) { return(NotFound()); } claimsRepo.Remove(claims); await claimsRepo.SaveChangesAsync(); return(NoContent()); }