public void Delete(T entity) { try { _fileContext.DeleteItem(entity.Id); } catch (FileContextException e) { if (e.Code == FileContextExceptionCode.ItemNotFound) { throw new EntityNotFoundException(); } throw; } }