public async Task DeleteAsync(int documentationID) { Documentation documentation = null; Stopwatch timespan = Stopwatch.StartNew(); try { DeleteDocumentationBusinessTypes(documentationID); documentation = await db.Documentations.FindAsync(documentationID); db.Documentations.Remove(documentation); db.SaveChanges(); timespan.Stop(); log.TraceApi("SQL Database", "DocumentationRepository.DeleteAsync", timespan.Elapsed, "documentationID={0}", documentationID); } catch (Exception e) { log.Error(e, "Error in DocumentationRepository.DeleteAsync(documentationID={0})", documentationID); throw; } }